Jump to content
Search Community

BKraupa

Members
  • Posts

    3
  • Joined

  • Last visited

BKraupa's Achievements

  1. Dear Jack, you pushed me in the right direction. It's not enough to just restore the scroll position, but using the window height to calculate the relative scroll height works as intended. onRefreshInit: function(self) { self.prevWindowHeight = $(window).height(); self.prevScroll = self.scroll(); }, onRefresh: function(self) { var afterWindowHeight = $(window).height(); self.scroll(self.prevScroll / self.prevWindowHeight * afterWindowHeight); } Many thanks for the help!
  2. Almost every mobile device resizes its browser window by simply scrolling back and forth; the address bar will fade in and out, causing a resizing each time. This was exactly my initial problem, I just wanted to make it easier for the forum request.
  3. Hi GSAP community! based on the official ScrollTrigger.matchMedia() Demo, I have a Problem to put more than one pinned secion in my site. In my Pen, try to scroll down to the red or blue section and change the HEIGHT of the window. After this resize, in best case you see an flicker, in worst case you are completely lost on the site, because the scroll position is changed. Is there a way to keep the scrollposition on resize? Thanks to you. Best regards
×
×
  • Create New...