Jump to content
Search Community

vvlestat

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by vvlestat

  1. Thanks Jamie, but it stops just after it starts. What I did is just replace the code and now it looks like that:

     

     

    // save a reference to that automatic scroll tween

    window.fullWindowScroll = TweenLite.to(window, 55, {scrollTo:{y:32000}});

    window.fullWindowScrollTimeOut;

     

    window.onscroll = function(e) {

    fullWindowScroll.pause();

    fullWindowScrollTimeOut = setTimeout(function(){

    fullWindowScroll.play();

    }, 3500);

    }

    }

     

    this.setupSection1 = function () {

    var pinAnimations = new TimelineLite();

    var animDuration = 3500;

     

    $('#section-1 > div.background-color:eq(0), #section-1 > ul.texts:eq(0)').css({

    display: 'block',

    opacity: 0

    });

     

     

    Here is the test site - http://server1.glide...r.com/paralax2/

  2. Thanks a lot. Last thing if I may.

     

    This is what I placed as code after the page is loaded and just before the first slide starts (london slide)

     

     

    TweenLite.to(window, 55, {scrollTo:{y:32000}});

    }

     

    this.setupSection1 = function () {

    var pinAnimations = new TimelineLite();

    var animDuration = 3500;

     

    $('#section-1 > div.background-color:eq(0), #section-1 > ul.texts:eq(0)').css({

    display: 'block',

    opacity: 0

    });

     

    pinAnimations

    .append(TweenMax.to($('#section-1 > div.background-color:eq(0)'), .5, {css:{

    opacity: 1

     

    ..............................

     

    But now if you touch the mouse scroll it goes manual, but it takes forever to scroll, as it looks like it gets the predefined values 55 seconds for 32000 pixels. Can I avoid that and if you touch your scroll to switch to its default settings (3500 ms duration)

     

    Cheers!

×
×
  • Create New...