Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

djarosz

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

2 Newbie

About djarosz

  • Rank
    Newbie
  1. Just to piggyback on this same topic. -On page reload/refresh or when I'm navigation back to the page it takes me back down to the ScrollTriiger section with the callbacks. @GreenSock - anyway to prevent the "onEnterBack" callback from firing on page reload/refresh?
  2. Thanks for helping out and making updates the ScrollTrigger.min.js file. I'll use the new beta version moving forward. I appreciate effort and thanks again.
  3. Hi @elegantseagulls, Thank you for getting back to me so quickly and looking into the issue. In my codepen example I'm using the disable() functionality on the click event of the "back-to-top" button and then onComplete of the scroll using enable() functionality. // Scroll to top Button const scrollTopBtn = document.querySelector('.btn-top'); var enableGsap = function () { ScrollTrigger.getAll().forEach(test => test.enable()); } scrollTopBtn.addEventListener('click', function () { ScrollTrigger.getAll().forEach(test => test.disable()); gsap.to(w
  4. Hello GSAP Team, I'm new to Scroll Trigger and having issues trying to scroll back to the top of the page. I've created a snapping section in the middle of the page that acts like a "road block". That works well. At the bottom of the page, I have a button that scrolls you user back to the top of the page when clicked on. Here lies the issue. Once the scroll reaches the top of the page, it then starts scrolling back down to the snapping section. I need it to stay at the top with out it scrolling back down. Thanks!
×