Jump to content
Search Community

kailin

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by kailin

  1. Ohhh my god thank you so much. Progress requiring a positive value is such an obvious answer!
  2. Hi! Original slider code that I've based this off of: https://codepen.io/osublake/pen/veyxyQ?editors=0010 The original code (above) is everything I need for a slider, but I wanted to use v3 of GSAP (no particular reason, just want to). I've tried changing the above to use v3 without all my personal modifications, but once I change var transform = proxy._gsTransformto use var transform = gsap.getProperty(proxy) and transform.x to transform("x"), the same issue as below happens. The slide colors have to be changed as well since this method of randomizing colors doesn't work with v3. The bug in my code (see codepen below) - Dragging and button press (next) gets stuck on the original start point. - Going left works well. - Going left, then right works well. But it gets stuck once you hit the original start point. - Going right / next will cause you to be stuck for a while, as the progress and x values are still increasing. At that point, the animation will be stuck until you press / drag previous enough times to reach the start point again. Thank you for any assistance
×
×
  • Create New...