Jump to content
Search Community

b.scrollTo is not a function

furry_monkey test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi there...

 

Basically I'm having the following problem:

 

  1. ScrollToPlugin.min.js:12 Uncaught TypeError: b.scrollTo is not a function
    1. _gsScope._gsDefine.plugin.set @ ScrollToPlugin.min.js:12 f.render @ TweenLite.min.js:12 f.render @ TweenLite.min.js:12 C._updateRoot.F.render @ TweenLite.min.js:12 f.dispatchEvent @ TweenLite.min.js:12 r @ TweenLite.min.js:12

 

Library versions:

<!--js gsap library-->
    <!--CDN links for TweenLite, CSSPlugin, EasePack and ScrollToPlugin -->
    
    <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/plugins/CSSPlugin.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/easing/EasePack.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenLite.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/plugins/ScrollToPlugin.min.js"></script>
 
JQuery: "jquery": "~1.9.1",
jquery.min.js header: /*! jQuery v2.2.3 | © jQuery Foundation | jquery.org/license */
 
The code:
TweenLite.to(window, 2, {scrollTo:{y:scrollto}, ease:Power2.easeOut});
 
Anyone has an idea about this?
 
Thanks in advance
Link to comment
Share on other sites

Hi and welcome to the GreenSock foums.

 

It looks like the scrollTo plugin is not present when the code is executed, but is definitely a bit odd.

 

Could you set up a live reduced sample using codepen so we can take a better look at it and figure what is the issue?. Is really hard to pinpoint the problem with the information you're providing now.

 

Please take a look at this:

 

http://greensock.com/forums/topic/9002-read-this-first-how-to-create-a-codepen-demo/

  • Like 2
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.
×
×
  • Create New...