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)
I can't seem to get this to work. What happens is that it defaults to last group in my svg file and on animation end I gets a "can't read property 'items' of undefined". Not sure why it happens but it's line 1419 in the script. Code:
var iconSet = new SVGMorpheus('#icon');
iconSet.to('burger-menu');
and my svg file (tried with the one you have in your project as well)
It only ever uses a default animation to set the last group in the svg and after what I assume is 750ms (default animationtime) if says that items is undefined.
@johnhult You should embed the svg right into html, instead of calling an external svg via <object>. The <object> is sandboxed and can't be manipulated from scripts on the page.
I can't seem to get this to work. What happens is that it defaults to last group in my svg file and on animation end I gets a "can't read property 'items' of undefined". Not sure why it happens but it's line 1419 in the script. Code:
and my svg file (tried with the one you have in your project as well)
and my html
It only ever uses a default animation to set the last group in the svg and after what I assume is 750ms (default animationtime) if says that items is undefined.