Jump to content
GreenSock

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

Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.

Recommended Posts

I am trying to replicate the same thing as done in this codepen, but i keep getting the error 'Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions', What do i do?

See the Pen NWxNEwY by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hey there and welcome to the forums!

 

As this demo's working it's hard to tell I'm afraid - could you create a demo that shows the issue?

Are you including the right JS files?

Link to comment
Share on other sites

That error sounds like you just forgot to load (or register) the ScrollToPlugin :)

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