Jump to content


Random duration for svg points

Recommended Posts

Hello! In my example, on mouse click, two svg dots are raised. I would like to animate each of them individually so that each one has a random duration. Is it possible?

See the Pen MWGmGYd by romanusss (@romanusss) on CodePen

Link to comment
Share on other sites

Hey there Romanus,


Sure thing, so I would probably approach this using proxy objects to tween the values and then update the path using gsap's ticker, (which is kind of like a GSAP version of requestAnimationFrame)

See the Pen KKRmroe?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 3
Link to comment
Share on other sites

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.