mithril.animate icon indicating copy to clipboard operation
mithril.animate copied to clipboard

SVG animation

Open tehChromic opened this issue 9 years ago • 2 comments

What a great addition to mithril! Is it possible to animate SVG using mithril.animate? If so would it be possible to put up a few examples?

tehChromic avatar Jun 02 '16 17:06 tehChromic

Hey, I don't have a lot of experience animating SVG, but there is no reason why we can't - it seems that mithril supports SVG just fine. Would you have a simple example of some SVG, and and a simple example of an animation - perhaps just opacity fading or something to start? I can investigate how feasible it would be - please use either codepen, jsbin or jsfiddle for your example.

jsguy avatar Jun 06 '16 03:06 jsguy

Here's a link that gives an overview and there's a codepen in it:

https://davidwalsh.name/svg-animation

Actually the example uses velocity which I notice is your other open issue ... velocity might be a silver bullet that kills both birds if you'll pardon the mixed metaphors!

Here's the codepen:

http://codepen.io/julianshapiro/pen/wmtEH

tehChromic avatar Jun 14 '16 18:06 tehChromic