Skip to content
Advertisement

Transition effect between two states of svg polygon on hover

JavaScript
JavaScript

If you hover over the triangle, the coordinate points of the polygon change. Any ideas what is the most convenient way to create the transition effect between the two states? So it doesn’t just instantly change, but has some kind of ease animation.

Advertisement

Answer

You can do all this in SMIL. No javascript required.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement