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

How can I get the svg paths in the morpheus-transform process?

BaoyangBob opened this issue · comments

I'm an Android developer, not a web developer,and I know little about javascript.I saw the delight detail in google's Material Design guidelines,so I hope to make some similar buttons.What I want is to capture a set of svg paths in the process.Should I use the follow code in function "SVGMorpheus.prototype._updateAnimationProgress" (Line 362)in "\source\js\svg-morpheus.js"?

console.log(this._curIconItems[i].path);

3Q,my email:MichaelBockson@gmail.com

@BaoyangBob Yeah, you may put the console line before that one to get all the paths generated during the morph process.