Jump to content
Search Community

RubberFruit

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by RubberFruit

  1. Hi @OSUblake! But I also use which is used in my project and is difficult to implement in the code pen (in the gsap settings I use scroller: isMobile () || isTablet ()? '': '.scroller',) https://codepen.io/rubberfruits/pen/eYGEgvL
  2. 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});
×
×
  • Create New...