10 Replies Latest reply on Nov 10, 2014 8:50 AM by resdesign

    greensock scrolling div

    spout4fun

      Hello, I am looking for a way to scroll my Stage with Greensock

       

      I found that but I can not make it work

       

      http://greensock.com/forums/topic/6056-scrolling-the-page-up-and-down-with-greensock-js/

       

      my code work when I use .animate methode

      sym.getComposition().getStage().$('#Stage').animate({ scrollTop: 500 }, 5000 ); // Ok

       

      with

          TweenMax.to(window, 3, {scrollTo:{y:300}}); // not working

      or

           TweenMax.to($(window), 3, {scrollTo:{y:300}}); // not working

       

      any solution ?

      And with a Yoyo action it would be fantastic !!

       

      thanks