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

Home Forums JavaScript Smooth Scroll plus Media Query Animation Issues

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #33598

    I am using the Smooth-Scroll script on a single page “super-scroll” site. I am also using media queries to adjust for tablet and mobile screen sizes.

    The scroll works wonderfully if the page is loaded in any given size (eg desktop, tablet portrait, etc) However, if the page is loaded and then the media query changes the layout the scroll animation become erratic. Some links jump, some scroll to the wrong location etc.

    I am guessing the location of the #link is moving in relation to where it was before the media query. Is there a way to combat this?


    Just wondering if you ever resolved this issue? I’m having the same problem with a responsive scroll site that I’m working on.

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