start/stop animaged .gif

cainam Community Member Posts: 361 ♦ Idol ♦
Scenario:  I have an animated .gif that I don't want to start playing until the user clicks a button on the page.  Is there a way to do this with actions inside of Lectora, or using JavaScript?

(my current setup to fake it, is I have 2 pages that look the same.  A still image is on the first page with action to go to next page when clicked.  On that 2nd page I have the animated .gif which start immediately).  Works, but looking for something cleaner.
- Adam Cain


  • smiller7502
    smiller7502 Community Member Posts: 181
    How 'bout:
    1. Set the animated image to initially hidden.
    2. Add a still image of the frame you want displayed until the animation starts.
    3. On click, hide the still image and show the animation.
  • cainam
    cainam Community Member Posts: 361 ♦ Idol ♦
    Thanks Stan!  cleaner than the 2-page solution.  ; )
    - Adam Cain