05. Pausing Gifs πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

Pausing Gifs

Instructions

  • Using the starter code provided, follow the instructions below to provide stop/start animation to your application.

  • Create a variable named state and then store the image’s data-state into it.

    • Use the .attr() method for this.
  • Update the src attribute of an image to it’s data-animate value

    • Update the data-state attribute to 'animate'.

    • If state is equal to 'animate', then update the src attribute of the image to it’s data-still value and update the data-state attribute to 'still'


βœ… Solutions

Solutions Click Here