https://greensock.com/docs/#/HTML5/GSAP/Plugins/ScrollToPlugin/ I'm using chrome Version 40.0.2214.111 (64-bit)
JS files
<!--CDN link for the latest TweenMax-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/TweenMax.min.js"></script>
<!--CDN links for the latest CSSPlugin, and EasePack-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/plugins/CSSPlugin.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/easing/EasePack.min.js"></script>:
When I try even using the sample code,
TweenMax.to(window, 2, {scrollTo:{y:400}, ease:Power2.easeOut});
this is the error I get:
Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': 2 arguments required, but only 0 present.
What am I doing wrong? Edit: changed the font size of some of my pasted text Edit 2: the first edit doesn't work.. ~:/ Edit 3, it doesn't appear to work in Safari (latest) OSX either... It doesn't scroll at all, and here's the related console message:
> Object