0 Replies Latest reply on Aug 22, 2015 7:05 AM by toedip

    Time out function

    toedip

      Hi,

       

      I'm making an interactive website that is a few layers deep. Each layer is triggered by a user click event for navigation.

       

      I'm trying to figure out if there is a way to have a time out event if no touch / click action has been performed for x amount of time, and then for the interactive to go back to 0 seconds in the time line. I can make a very crude method of doing this by just adding 20 seconds (or so) of "dead space" while waiting for user input to trigger the next interaction... then use a play from command to start at 0, but then my timeline would be very very long having to add this after every animation and awkward to manage. I'm guessing there is probably some JS code I could use instead to start a timer after every click action, giving the user up to 60 seconds to perform another click action, else the page then goes back to 0 seconds to start the intro animation again.

       

      Any help would be much appreciated!

       

      Thank you.

       

      Mark