Jump to content
Search Community

unvs

Members
  • Posts

    20
  • Joined

  • Last visited

Community Answers

  1. unvs's post in seamlessLoop helper: smooth transition from throw to roll was marked as the answer   
    For anyone following along, it was quite easy to do actually.
     
    First I added the `onDragStart` event to the draggable which just called `tl.pause()` to stop autoplaying when we start dragging.
    Then I hooked into `onThrowComplete` which was currently calling `syncIndex()`. I created my own callback (that first calls syncIndex), then:
     
    gsap.set(tl, { timeScale: 0 }) tl.play() gsap.to(tl, { timeScale: 1, ease: 'power2.in', duration: 2 })
×
×
  • Create New...