KWcksn Posted Wednesday at 08:05 AM Share Posted Wednesday at 08:05 AM Hello! I am creating a website in which it has a preload, then displaying the content. I use ScrollTrigger to create a slide-up panel effect. The problem is, the ScrollTrigger only works after I resize the window. Both are working perfectly fine separately, though. I have tried using scroller ScrollTrigger({ trigger: "panel", scroller: "#content" //other }); as I have seen other post similar to mine, but it still didn't work. Did I do something wrong? Thanks for the help! See the Pen QWRMPJM by Keywcksn (@Keywcksn) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted Wednesday at 02:28 PM Solution Share Posted Wednesday at 02:28 PM Maybe you need to call ScrollTrigger.refresh() after your content is loaded in? Link to comment Share on other sites More sharing options...
KWcksn Posted Thursday at 02:11 AM Author Share Posted Thursday at 02:11 AM 11 hours ago, Cassie said: Maybe you need to call ScrollTrigger.refresh() after your content is loaded in? Thank you! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now