Jump to content
Search Community

gsapluvah

Members
  • Posts

    3
  • Joined

  • Last visited

gsapluvah's Achievements

  1. The problem was that I did not have the plugin included anywhere in my project. I thought this used to work with TweenMax, but I guess I was wrong! <!--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.15.1/plugins/ScrollToPlugin.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/easing/EasePack.min.js"></script>
  2. 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
  3. Hello fellow GreenSock users! I'm new to GSAP and I'm using the TweenMax.to method to change the "top" css property of several elements whenever a click occurs on a navigation element... Problem is I need for that to not happen if the animation of the previous click is still in progress... I see that in the documentation for GSAP there is the public method "isActive", but I'm using TweenMax... not sure if I should even attempt at using those methods off of the TweenMax object or not - I'm guessing it wouldn't work. SO... is there a way to determine if a TweenMax animation is active or inactive? What are the differences between animations applied via TweenMax, TweenLite, and Timeline? BEST regards, gsapluvah!
×
×
  • Create New...