Hello, I have a quick question, and this is just me being as clear as I can.
Say you have two shape icons, for the sake of this a circle and triangle, is animate() capable of transforming the circle into the triangle icon over any time provided, like how someone may icon a transition between the two? Even though I mentioned basic shapes, I would want to know if it can be applied to any icon shape in general.
Oct 18 2017, 12:38 pm
|
|
No. animate() can't tween shapes.
|
Closest you could probably get to that would be to animate the alpha of the original shape from 255 to 0 and do another with the new shape in the same loc from 0 to 255, setting the original to the final at the end.
|
In response to Flick
|
|
Flick wrote:
Closest you could probably get to that would be to animate the alpha of the original shape from 255 to 0 and do another with the new shape in the same loc from 0 to 255, setting the original to the final at the end. Off topic, but that's clever as shit. lol |