Jump to content
Search Community

Repeat a SVG animation

salimalisalim
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

salimalisalim
Posted

Hi,

How can i repeat my SVG animation continuously. Below is my fiddle.

 

http://jsfiddle.net/f5jx7o0L/

 

See the Pen bjmMab by salimali (@salimali) on CodePen.

Posted

Hm, it looks like you're not using GSAP at all for those animations - you're just using CSS, right? These forums are for GSAP-related questions. Did you have one of those? We'd be happy to help. Repeating an animation (or a group of animations) is really easy with GSAP - you just set the "repeat" special property of a TimelineMax or TweenMax. 

  • Like 3
Posted

BTW - Here's how easily your animation could be done with GSAP.

 

See the Pen qyQEqX by PointC (@PointC) on CodePen.

 

It would be even easier with the DrawSVG plugin because you wouldn't need to manually set all those (stroke-dasharray="550" stroke-dashoffset="550"). That is a Club plugin. More info:

https://greensock.com/club

 

Happy tweening.

:)

 

  • Like 4

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...