Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Scroll stops too soon (div switches position:fixed)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #146976
    mabrams
    Participant

    Hello,

    I have made a previous post about using superscrollorama (in CSS-Combat) in conjunction with a navigation menu. I was able to get the animations to work when scrolling, however when I create my second .click() it seems to jump when the div it goes to changes its position:fixed and will not scroll to the position but abruptly stop just before.

    Any Ideas?

    First one that works fine:

    $("#feature1").click(function(){
    TweenLite.to(window, 4, {scrollTo:{y: 1467, x:0}, ease:Power4.easeInOut});
    });

    Second item that scrolls, then stops before the end of the div:

    $("#feature2").click(function(){
    TweenLite.to(window, 4, {scrollTo:{y: 3071, x:0}, ease:Power4.easeInOut});
    });

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.