About 189,000 results
Open links in new tab
  1. javascript - Make gifs appear on a button click - Stack Overflow

    Apr 2, 2018 · You need to create it dynamically on button click so you can use the button's value as your query. Also, PLEASE change your API key after this quetion is resolved or you will …

  2. Can you control GIF animation with Javascript? - Stack Overflow

    If you want to use JavaScript, you’re most likely alternatives are controlling genuine video or using CSS sprites. The benefit of using CSS sprites is that you end up transferring a single image, …

  3. Load and play a gif with javascript onclick event

    Oct 18, 2016 · When I click on 1.png, I want the animated gif 1a.gif to be loaded and shown/updated in the img tag located in <div id="container">. When I click on 2.png , 2a.gif …

  4. Creating click-to-play gifs with vanilla JavaScript

    Sep 9, 2019 · The easiest way to do this, is to display some kind of play button on top of the image when it is stopped. To access the elements in JavaScript with more ease and to …

  5. How to Play Animated GIFs onClick - Hongkiat

    Apr 24, 2025 · For pages that showcase a lot of GIFs, this is bad news. The solution: serve users with a static image and only allow the animated GIF to run upon user-click. In this short tutorial …

  6. Accessible GIF Image Player In Vanilla JavaScript – Gifa11y

    May 16, 2025 · A Vanilla JavaScript library that adds configurable, accessible play/pause buttons to animated Gif/WebP images.

  7. Implementing Click-to-Show Gif Functionality

    Jun 25, 2024 · Learn how to enhance user experience by implementing click-to-show GIF functionality on your website using JavaScript and lazy loading techniques.

  8. JavaScript - Trigger GIF play (button) - CodePen

    Tech demo for how to replay a .gif based on an a JavaScript (jQuery) action....

  9. javascript - Need to Show a gif on button click - Stack Overflow

    Jan 23, 2019 · I want a gif of a spinner to be hidden, but show when the user clicks the button. I have a button labeled #lp-pom-button-279 and an image labeled #lp-pom-image-288. I tried …

  10. Interactive Buttons with GIFs - CodePal

    Learn how to create interactive buttons with GIFs using HTML, CSS, and JavaScript. This tutorial will show you how to display different GIFs when hovering over and clicking on buttons.

  11. Some results have been removed
Refresh