Jump to content

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

Can't get scrollTo plugin to target IDs

Recommended Posts

I'm trying to get the scrollTo plugin to work without any luck in targeting element IDs. Have tried this in several scenarios. For example:

	var downBtn = $('#history-banner-down-btn');

	downBtn.on('click',function() {

This will work if I change '#section-1' to 'max' which scrolls to the bottom of the document. Using an ID never works - no console errors or anything. Any ideas on where I'm going wrong?



Almost immediately fixed the problem after posting this. I was using an older version of the scrollTo plugin. Updated to 1.8 and it worked.

  • Like 2
Link to comment
Share on other sites

Hello mbader, and Welcome to the GreenSock Forum!


Glad you got it working


Happy Tweening! :)

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