How to make shape come back in SVG animate | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make shape come back in SVG animate

When I use animate with SVG tag, the desired attribute goes to the target but then suddenly comes back, i.e., it does not come back slowly, like it went. How can I make it come and go the same way. I know marquee tag but it moves the objects till the end of the page. Thank You. Edit: How to make it animate indefinitely?

23rd Mar 2018, 2:48 PM
Ram Keswani
Ram Keswani - avatar
2 Answers
+ 2
Just animate it to that place and then animate it back There’s really no other way
23rd Mar 2018, 6:59 PM
Ariela
Ariela - avatar
0
There's an easy way to do that in svg
8th May 2018, 6:01 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar