Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
qasim

Gsap Rotating Arrow in circle,and is stopping well at various points, But Now want to trgieer some js code on each that stop points

Recommended Posts

Gsap Rotating Arrow in circle,and is stopping well at various points, But Now want to trgieer some js code on each that stopping points, So that i can glow or animate each points logo , when stop on it for some time

Just want to show Different alert or consoles on Different points

See the Pen vYWQbBQ by tripti1410 (@tripti1410) on CodePen

Link to comment
Share on other sites

Hi qasim,

 

You should look over how Timelines and the position parameter work. You can do whatever you want, for example.

 

.to( '.circle-container' , { rotation: "+=90"}, "+=1" )

.add(() => {
  console.log("Hello")
})

.to( '.circle-container' , { rotation: "+=90"}, "+=1" )

 

  • Like 1
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.
×