Hi there...
Basically I'm having the following problem:
ScrollToPlugin.min.js:12 Uncaught TypeError: b.scrollTo is not a function
_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