codrops / ScrollBasedLayoutAnimations

An exploration of different scroll based layout switch animations using GSAP's ScrollTrigger and Flip.
MIT License
299 stars 82 forks source link

What is 'pin spacer' element? #3

Closed fredbergwitz closed 2 months ago

fredbergwitz commented 2 months ago

Great work! Perhaps I'm retarded but I can't seem to figure out where, when and how 'pin-spacer' is created?

SCR-20240823-mzzr
crnacura commented 2 months ago

Thank you Fred! That's part of the GSAP ScrollTrigger's pinning: https://gsap.com/docs/v3/Plugins/ScrollTrigger/?page=1#pinSpacer