Jump to content
Search Community

yarovikov

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by yarovikov

  1. 2 minutes ago, PointC said:

    I wasn't really sure if clicking any button would reverse the active timeline or multiple timelines could be active and each one would have two controls. In any case, here's a simple loop approach using an index and skips jQuery.

     

    See the Pen drLaRe by PointC (@PointC) on CodePen

    Maybe it'll help. Happy tweening.

    :)

     

     

     

    oh nice!  thanks!

  2. 9 hours ago, PointC said:

    There are many ways to make that work. 

     

    You could name your timelines and play/reverse depending on some data attribute of the buttons. You could also loop though and use an index for each timeline that corresponds to the index of the buttons. You could also use an active timeline variable and if true, reverse it when another button is clicked.

     

    codepen added

×
×
  • Create New...