HeroMeiKong Posted August 7, 2020 Share Posted August 7, 2020 (edited) What I want is to delete markers, but it works See the Pen RwaPQyq by HeroMeiKong (@HeroMeiKong) on CodePen Edited August 10, 2020 by HeroMeiKong Link to comment Share on other sites More sharing options...
ZachSaucier Posted August 7, 2020 Share Posted August 7, 2020 Hey HeroMeiKong and welcome to the GreenSock forums. Would you please create a minimal demo that shows the issue? Link to comment Share on other sites More sharing options...
elegantseagulls Posted August 7, 2020 Share Posted August 7, 2020 Hi @HeroMeiKong, I'm pretty sure this is due to your div {} styling. When you add markers, a <div> is appended to the page to hold them, so these markers are inheriting the div styling from your stylesheet, thus affecting your layout/page. It's best to add a utility class and avoid generic element styling like this. Also, adding a minimal example, or at least indenting your code, would be very helpful in trying to debug/understand what's happening. 6 Link to comment Share on other sites More sharing options...
HeroMeiKong Posted August 10, 2020 Author Share Posted August 10, 2020 On 8/7/2020 at 9:34 PM, ZachSaucier said: Hey HeroMeiKong and welcome to the GreenSock forums. Would you please create a minimal demo that shows the issue? this is my CodePen Deme, Link to comment Share on other sites More sharing options...
elegantseagulls Posted August 10, 2020 Share Posted August 10, 2020 Hi @HeroMeiKong, You need to turn your pinSpacing to true. ScrollTrigger is creates a Fixed position element on your #root div, and the way you have your HTML and CSS setup, this isn't allowing the page to scroll, the pinSpacing option should fix this. 4 Link to comment Share on other sites More sharing options...
HeroMeiKong Posted August 11, 2020 Author Share Posted August 11, 2020 14 hours ago, elegantseagulls said: Hi @HeroMeiKong, You need to turn your pinSpacing to true. ScrollTrigger is creates a Fixed position element on your #root div, and the way you have your HTML and CSS setup, this isn't allowing the page to scroll, the pinSpacing option should fix this. It works, thank you so much. 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