goodcontext Posted January 31, 2022 Posted January 31, 2022 Sometimes you can see an image, sometimes you can't. You can see it well on the code pen. But local or github.io I can't see it. There are times when you can see it. Even if I try this and that, it doesn't work. How can I fix this? It often works well in chrome.However, I think there are more times when you can't see it from the edge. bug_report.zip See the Pen eYeJEBv by goodcontext (@goodcontext) on CodePen.
elegantseagulls Posted January 31, 2022 Posted January 31, 2022 I think your issue is that you're nesting two scroll triggers in a single timeline. You should just be able to use a gsap.from(...) for each one. 1
goodcontext Posted January 31, 2022 Author Posted January 31, 2022 See the Pen MWOKENx by goodcontext (@goodcontext) on CodePen. scrollPage.from -> gsap.fromI changed it to, but it doesn't work well.Thank you for your answer. bug_report02.zip
Solution OSUblake Posted January 31, 2022 Solution Posted January 31, 2022 You should probably refresh ScrollTrigger when your images have loaded. window.addEventListener("load", () => { ScrollTrigger.refresh() }); 1
goodcontext Posted January 31, 2022 Author Posted January 31, 2022 1 hour ago, OSUblake said: You should probably refresh ScrollTrigger when your images have loaded. window.addEventListener("load", () => { ScrollTrigger.refresh() }); See the Pen vYWLdvX by goodcontext (@goodcontext) on CodePen. Thank you both so much.I fixed the code and it works perfectly.Thank you. result_code.zip 1
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