krisxtina Posted January 31, 2022 Share Posted January 31, 2022 Hello. I`m enough new in using gsap. I need your review please, because I have doubt about the implementation of idea. So, my idea: I need two sections of 100vh horizontally scrolled, then I have section #3 (projects) that has own height, after that I want two sections of 100vh horizontally scrolled. I did this, but I`m not sure that it is clear and css is right. Thank you for your attention See the Pen KKyVRQg by Kisa777Zaika (@Kisa777Zaika) on CodePen Link to comment Share on other sites More sharing options...
krisxtina Posted January 31, 2022 Author Share Posted January 31, 2022 Also I noticed that this animation works good on Safari, but Chrome with random flashes Link to comment Share on other sites More sharing options...
GreenSock Posted February 1, 2022 Share Posted February 1, 2022 Hi @krisxtina. I didn't quite understand what you're asking - can you clarify? It looked to me like everything was working as expected. What exactly is the problem? I don't see any flashes in Chrome at all. Not even one. How can we reproduce? Link to comment Share on other sites More sharing options...
krisxtina Posted February 1, 2022 Author Share Posted February 1, 2022 5 hours ago, GreenSock said: Hi @krisxtina. I didn't quite understand what you're asking - can you clarify? It looked to me like everything was working as expected. What exactly is the problem? I don't see any flashes in Chrome at all. Not even one. How can we reproduce? Hi. I want that someone who is good in gsap see that my code is clear, please. No problem, just have doubt about correct code writing Link to comment Share on other sites More sharing options...
GreenSock Posted February 1, 2022 Share Posted February 1, 2022 I don't see any obvious problems. You could simplify things with a .forEach() loop so that you don't have to manually create a new one for each section or add a distinct class to each one. But that's just about simplification - it's not that there was something "wrong" in your code. I personally would reduce the "end" value a bit so that it doesn't take so long to scroll through those sections, but that's totally a personal preference. 1 Link to comment Share on other sites More sharing options...
krisxtina Posted February 2, 2022 Author Share Posted February 2, 2022 13 hours ago, GreenSock said: I don't see any obvious problems. You could simplify things with a .forEach() loop so that you don't have to manually create a new one for each section or add a distinct class to each one. But that's just about simplification - it's not that there was something "wrong" in your code. I personally would reduce the "end" value a bit so that it doesn't take so long to scroll through those sections, but that's totally a personal preference. Thank you! 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