Jump to content
Search Community

martinmilizia

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by martinmilizia

  1. Hi and welcome to the GreenSock forums.

     

    Unfortunately is pretty hard to see what the problem could be without a live sample or even a code block.

     

    Please take a  look at this post and the video in it in order to create a reduce case sample of your  code so we can get a better idea of what's going on, normally that allows us to get a working solution in a very short time:

     

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

     

    Finally in terms of scrolling pages and elements, be sure to take a look at the scrollTo Plugin, it's super easy to use and you get very good results with it:

     

    http://greensock.com/docs/#/HTML5/Plugins/ScrollToPlugin/

    Rodrigo, thanks for your reply!

    I solved! The problem was just in scroll plugin that I use in my project (scrollMagic), tweenTo play the animation ma don't update the scroll position.

    I solved with this two function:

    function goToLabel(timeline,label){
    	timeline.tweenTo(label);
    }
    function setScroll(controller,val){
    	controller.scrollTo(val);
    }
    

    unfortunately the solution isn't responsive, have you other tricks?

×
×
  • Create New...