Nisseboi Posted December 16, 2021 Share Posted December 16, 2021 Hello Ive been working with pleasure with gsap for 4 weeks now and im loving it im just about to finish my project when I notice that my pin elements still have some margin top which I do not have anywhere in my code anyway who can help. I have put pin spacing false, as seen in my javascript screenshot all the code that is used in the sections are in screenshots. Link to comment Share on other sites More sharing options...
Nisseboi Posted December 16, 2021 Author Share Posted December 16, 2021 This is the spacing im talking about Link to comment Share on other sites More sharing options...
akapowl Posted December 16, 2021 Share Posted December 16, 2021 Hello @Nisseboi One thing I noticed at a quick glance is that your starts are not really valid since they have 3 parameters - they are supposed to have 2 parameters (one for the element and one for the viewport). This may very well not be the root of your problem though. Another thing from a quick guess is that your h2s up top of your section, which have a margin by default, might be causing this. So maybe try setting the margin/margin-top of your h2s to 0. If it doesn't help, could you maybe pop all this into a minimal demo? ...not your whole project though - you can replace your assets with simple divs as long as you can recreate the issue you are having. It is fairly hard to give you any advice from just looking at screenshots without having any code to actually tinker with. 2 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