no, no, no, no, no, no.... Look at the heart to star morphing. How can you call it a "very cool effect"?! It's so damn ugly. It existed back in the day of Macromedia Flash 4 (maybe earlier), called shape tweening. Except there, you could use tween hints to control the transition. Try this instead: look at the pairs of nearest points, take a heap sort of like 4 best matching pairs of points, and from those points trav…
O the hours I set ablaze in supplication to the shape-tween-hinting gods (for all the good it did)
Morphing Arbitrary Paths in SVG
11–17 of 17 posts
Re: Morphing Arbitrary Paths in SVG
#12Very cool effect Is there a basic JS library to do something like this by giving it two image paths via a property of an html tag? (and then the library automatically replacing the html element with an animation) For example: default content to replace with animation Extra bonus point if it works on the background image of an element, so that a whole page might have an animated svg background
Re: Morphing Arbitrary Paths in SVG
#13no, no, no, no, no, no.... Look at the heart to star morphing. How can you call it a "very cool effect"?! It's so damn ugly. It existed back in the day of Macromedia Flash 4 (maybe earlier), called shape tweening. Except there, you could use tween hints to control the transition. Try this instead: look at the pairs of nearest points, take a heap sort of like 4 best matching pairs of points, and from those points trav…
Re: Morphing Arbitrary Paths in SVG
#14Very cool effect Is there a basic JS library to do something like this by giving it two image paths via a property of an html tag? (and then the library automatically replacing the html element with an animation) For example: default content to replace with animation Extra bonus point if it works on the background image of an element, so that a whole page might have an animated svg background
Yes, there is: https://alexk111.github.io/SVG-Morpheus/
Re: Morphing Arbitrary Paths in SVG
#15The author, Boris Dalstein, published a novel algorithm for shape morphing at SIGGRAPH 2014, using vector animation complexes[2], which is the basis for this software.
AFAIK this is (still) state of the art for this stuff today. I.e. I haven't seen anything better if you do any sort of 2D animation based on vector graphics. Topology is more or less not a concern any more.
Re: Morphing Arbitrary Paths in SVG
#16Check out VGC software's VGC Animation[1]. The author, Boris Dalstein, published a novel algorithm for shape morphing at SIGGRAPH 2014, using vector animation complexes[2], which is the basis for this software. AFAIK this is (still) state of the art for this stuff today. I.e. I haven't seen anything better if you do any sort of 2D animation based on vector graphics. Topology is more or less not a concern any more. [1…
Re: Morphing Arbitrary Paths in SVG
#17Earlier quoted context omitted.
O the hours I set ablaze in supplication to the shape-tween-hinting gods (for all the good it did)
I am too young to have lived through that era, but it seems to me like tweening hints were all integrated in the editing UI? That is of course much more useful. But the scope of my post was not at all to do something better than Flash, or to integrate a full editor. It's just an explanation for one way to achieve it, leveraging what SMIL already offers.