biocarl / drawing_animation

A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).
https://pub.dartlang.org/packages/drawing_animation
BSD 2-Clause "Simplified" License
488 stars 123 forks source link

Erase animation for SVGs #8

Closed tusharojha closed 4 years ago

tusharojha commented 4 years ago

Hi there I am using this package and I found it helpful. I liked the way it traces the path and shows the drawing effect. I am facing a problem in doing something similar technically but opposite of this animation i.e. erase animation. I want to show an SVG and then trace the path of SVG to erase it. Can you help me with this either by providing resources or implementing it in the same package?

biocarl commented 4 years ago

Hey @tusharojha, Glad you find it useful! You can already do this with the package by providing a custom animation controller: just set animation value to 1 and animate to 0. Also have a look into curves and ReverseAnimation.

tusharojha commented 4 years ago

Thank you for your help! I'm closing this issue now.