Hi guys
Please help me! played on the iPhone: when the scrolling reaches the top of the picture, it jumps to the top of the screen, and so on with each picture. What could it be?
video:https://vimeo.com/658538950
code: gsap.registerPlugin(ScrollTrigger);
let panels = gsap.utils.toArray('.scroll-item');
panels.forEach((panel, i) => {
ScrollTrigger.create({
scroller: isMobile() || isTablet() ? '' : '.scroller',
trigger: panel,
start: 'top top',
pin: i !== panels.length - 1,
pinSpacing: false
});
});
gsap.set('.scroll-item', {zIndex: (i, target, targets) => targets.length - i});