Jump to content
Search Community

Arashkh

Members
  • Posts

    2
  • Joined

  • Last visited

Arashkh's Achievements

  1. hi Rodrigo, thanks for replying I managed to fix it with "end" property let scrollTween = gsap.to(panels, { xPercent: -100 * (panels.length - 1), ease: "none", scrollTrigger: { trigger: ".WbContainer__Scroll_Hr", pin: true, scrub: 1, //scrollSmoothness and delay end: "+=" + panels.length * 3000, //speed of scroll } }) so with this I would have a scalable scroll speed based on the quantity of my slides before this my scroll space was generated automatically with the "pin" bottom padding
  2. is there anyway to control scroll speed (the pin bottom padding) with a dynamic width, I don't know if I understood the solution correctly but wouldn't it be annoying to have a static element width?
×
×
  • Create New...