alexk111 / SVG-Morpheus

JavaScript library enabling SVG icons to morph from one to the other. It implements Material Design's Delightful Details transitions. (THIS PROJECT IS NOT MAINTAINED ANYMORE)
MIT License
2.7k stars 241 forks source link

Need sample of your script #5

Closed artrainbow closed 8 years ago

artrainbow commented 9 years ago

Dear, Alexk111. Help me pls. I need morphing icon1 to icon2 by SVG-Morpheus. Whats wrong in my code and where i should to write options of morphing?

https://gist.github.com/anonymous/d29b9c16842dd7a43387

alexk111 commented 8 years ago

@artrainbow you need to add id="myIconSet" to the <svg>, init var options={} and var callback=function() { } before calling the var myIcons = new SVGMorpheus('#myIconsSet' , options, callback);