Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Manikandan Jeyaraman

GSAP indicator dot not active

Recommended Posts

You have listeners on variables that don't exist. It's always helpful to check the console for errors.

 

// these are undefined
flcmarketing.click(function() {
  sOne.seek("marketing1");
});
flcsocial.click(function() {
  sOne.seek("marketing2");
});
flcmodels.click(function() {
  sOne.seek("marketing3");
});

// I think you meant to do this
marketing1.click(function() {
  sOne.seek("marketing1");
});
marketing2.click(function() {
  sOne.seek("marketing2");
});
marketing3.click(function() {
  sOne.seek("marketing3");
});

 

Happy tweening.

  • Like 1
Link to comment
Share on other sites

What do you mean the indicator is not working? The code I pasted above works just fine. Do you mean your timeline isn't working correctly? 

 

You have a stack of photos in a timeline and you're trying to fade in the bottom ones in the stack so nothing will visibly happen. You also have some targets in the timeline that aren't in the DOM so I'm not sure what's supposed to be happening here. Here's a fork of your pen with a basic timeline that moves each slide into position and then fades out. I also added a console.log() so you can see that the dot clicks seek() correctly.

 

See the Pen JVVEdY by PointC (@PointC) on CodePen

  • Like 1
Link to comment
Share on other sites

Is that a question or a statement? I'm guessing you want the dots to animate along with the slider? There would be several ways to do that. The easiest would be to make the dot animation a part of the timeline.

 

Feel free to fork my demo and give that a try. Please post a new demo if you have any GSAP related questions or problems. Thanks.

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