Jump to content
Search Community

After preload, ScrollTrigger only works after resize window

KWcksn test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...