Jump to content
Search Community

jmsv

Premium
  • Posts

    10
  • Joined

  • Last visited

Community Answers

  1. jmsv's post in ScrollTrigger doesn't fire when page is already scrolled when loaded was marked as the answer   
    This was totally on me, I'm not sure exactly why but wrapping my `gsap` code inside of `webflow.push()` was preventing it from running when the page was already scrolled. Moving it outside of that function did the trick. 
     
    window.Webflow = window.Webflow || []; window.Webflow.push(() => { /* gsap, etc — doesn't work */ }); /* works */ gsap.to(...  
×
×
  • Create New...