locomotive-scroll icon indicating copy to clipboard operation
locomotive-scroll copied to clipboard

Data-scroll-section element appears/flashes in middle of viewport when it should be hidden

Open jesserosenfield opened this issue 2 years ago • 2 comments

https://monosnap.com/file/SDvbN26SJkqEmS61pHtKMmbyR3ad7x

Data-scroll-section element appears/flashes in middle of viewport when it should be hidden

The transform attribute is reset to 0 at the same time that the inview attribute is removed, so the element returns to the center of the viewport before fading to 0.

jesserosenfield avatar Mar 22 '22 08:03 jesserosenfield

Solved– never put an opacity transition on your [data-scroll-section] elements!

jesserosenfield avatar Mar 22 '22 08:03 jesserosenfield

Thanks a lot !!!

PinedaDev avatar Jun 20 '22 15:06 PinedaDev