gorangajic / react-svg-morph

:crystal_ball: morph your svg component one into another other

Home Page:http://gorangajic.github.io/react-svg-morph/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MorphReplace with more than 2 Icons

JonathanJumper opened this issue · comments

Hey,

I've got it working with two icons, but as soon as I add more, it stops working
I have an array of jsx elements and a counter in the state, hoping to use it as a loading indicator:

<MorphReplace width={size} height={size}> { icons[this.state.counter % icons.length] } </MorphReplace>

Any help with this?
thanks in advance