How to animate lines and polylines in SVG? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to animate lines and polylines in SVG?

I want to animate a line but when I put the attributeName to x1, only one part of the line moving while for polylines nothing is moving please I need your help.

8th Oct 2021, 8:41 PM
Sobi Mohammed
Sobi Mohammed - avatar
2 Answers
+ 6
I found the solution to my problem, For the line I just needed to create multiple animate elements to set the functionName to x1 and x2. While for polylines I need one animate element and set the functionName to points and manipulate the points ('from' takes the exact entries as points while 'to' is the manipulation you wanted)
9th Oct 2021, 12:37 PM
Sobi Mohammed
Sobi Mohammed - avatar
9th Oct 2021, 11:31 AM
Sunday Yemi Olanisimi 🇳🇬
Sunday Yemi Olanisimi 🇳🇬 - avatar