About 112,000 results
Open links in new tab
  1. 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, and that image has better overall compression than multiple …

  2. javascript - How to use JS to trigger a GIF animation ... - Stack Overflow

    You could export the individual frames as their own images and handle animation via javascript. It lets you do a couple of cool things. A colleague recently had a little timer animation that was synced to the configurable slideshow interval in our image gallery.

  3. How to add an animation gif to a javascript program

    Oct 24, 2020 · Either way, in your checkGuess function where correct = true you could create an img element: let img = document.createElement("img"), add the image source: img.src = "yourAnimation.gif", then append it to the document: document.body.appendChild(img)

  4. JavaScript: Create an Animated GIF from scratch ... - The Tech …

    Jun 11, 2023 · By following this guide, you will learn how to generate GIFs programmatically, customize the appearance of frames, and merge them into a single GIF file. The resulting GIF will be entirely offline and browser-based, allowing you to have full control over the creation process.

  5. Making GIFs in JavaScript - Medium

    Oct 15, 2021 · To start, I downloaded gif-encoder-2 and canvas via npm. gif-encoder-2 is one library that allows for the easy creation of GIFs in JavaScript. canvas assists this library in making the...

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

    Sep 9, 2019 · As I had to do some research to make the gifs in a recently published post click-to-play by only using vanilla JavaScript I will show you the method I finally ended up using. Actually, the basic idea is really simple: show a static image when paused and swap it with the actual gif once the user wants it to play.

  7. JavaScript animations

    Jan 20, 2024 · JavaScript animations can handle things that CSS can’t. For instance, moving along a complex path, with a timing function different from Bezier curves, or an animation on a canvas. An animation can be implemented as a sequence of frames – usually small changes to HTML/CSS properties.

  8. Gifler - GitHub Pages

    Gifler makes it easy to manipulate the underlying frames from the GIF. Just call the .frames() method with a canvas selector and a callback that will be called when each frame should be renderd. Gifler handles all the timing calculations and GIF transition logic.

  9. gif.js - jnordberg.github.io

    Full-featured JavaScript GIF encoder that runs in your browser. workers: 2, quality: 10 . // add a image element . // or a canvas element . // or copy the pixels from a canvas context . window.open(URL.createObjectURL(blob)); GIF images are generated in the …

  10. Creating gifs using gif.js. Here’s how to use gif.js: | by 김원중 ...

    May 11, 2023 · Import gif.js into your project. Create a gif instance. Load the worker using the workerScript option in the gif constructor. Add frames to the gif instance using the gif.addFrame method.

  11. Some results have been removed
Refresh