ScrollMagic icon indicating copy to clipboard operation
ScrollMagic copied to clipboard

Problem with last section while section wipes natural

Open martinb07 opened this issue 11 years ago • 1 comments

Hi At first, I wanna thank your for scrollmagic. It's awesome and I love it. I tried to implement the natural section wipes. The first sections looks good, but I have a problem with the last section. Well, how can I explain .... When the forelast section reaches the trigger, the last section is already in the viewport and the last two section displaces. On my Mac the effect is stronger than on my Windows Laptop. Pleace have a look at http://yourspa.info/wordpress/portfolio-item/make-up

Thank you in advance.

cheers martin

martinb07 avatar Aug 24 '15 20:08 martinb07

Sorry for the long silence on this.

This was a common v2 pinning issue with section wipes: the last section's pin spacer calculation didn't always account for the remaining scroll distance correctly, causing the forelast and last sections to overlap. The severity varied by OS/browser due to differences in scroll momentum and rendering.

v3 does not include pinning. For natural section wipes, CSS position: sticky is the standard approach now and handles the last-section edge case cleanly since the browser manages the stacking natively.


ScrollMagic v3 is now available -- a complete rewrite with an entirely new architecture and API. v2 will not receive further updates (2.0.9 is the final release).

👉 npm install scrollmagic@next -- Docs · Release notes · npm

janpaepke avatar Feb 20 '26 12:02 janpaepke