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)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"SVGMorpheus is not defined" in angular directive

deejbee opened this issue · comments

I have added the library to the page but when i do something like this:

 .directive('myDirective', function () {
            return {
                template: '<content-tag></content-tag>',
                link: function (scope, element, attr) {
                        var myIcons = new SVGMorpheus('#pinkFrames', { iconId: 'pinkFrame1'});
                        myIcons.to('#pinkFrame2', {}, null);
                   }
                }
            }
        });

I get:

SVGMorpheus is not defined ReferenceError: SVGMorpheus is not defined