0 Replies Latest reply on Oct 2, 2013 1:26 PM by Unkushunkus

    Building a swipe counter

    Unkushunkus

      I'm trying to build a counter to control which symbol animates when the user swipes up or down. This will live in DPS, and is mimicking the normal up/down page swiping of an article. But instead of swiping to the next page, I'd like a series of animations to play. The user swiping would play the next animation.

       

      The gist of what I'm trying to do:

       

      Open animation, counter starts at (0)

      User swipes up, counter ticks to (1):  Symbol A becomes visible, eases onto screen, plays loop animation

      User swipes up again, counter ticks to (2): Symbol A stops loop animation, eases off screen, visibility off. Symbol B becomes visible, eases onto screen, plays loop animation.

      .....and so on through all 6 symbols

       

      Swiping down would reverse the process, counting down, and reversing the order the symbols play.

       

      I'm having trouble translating this into code.

      Any help is greatly appreciated!