About 242,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. How To JS Animate - W3Schools

    JavaScript animations are done by programming gradual changes in an element's style. The changes are called by a timer. When the timer interval is small, the animation looks continuous.

  3. Anime.js | JavaScript Animation Engine

    Animate faster with an easy-to-use, yet powerful animation API. Smoothly blend individual CSS transform properties with a versatile composition API. Morph shapes, follow motion paths, and …

  4. 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.

  5. JavaScript: Create an Animated GIF from scratch with Custom …

    Jun 11, 2023 · Let's dive into the implementation details and code examples to create an animated GIF image from scratch using JavaScript and Canvas frames.

  6. 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 GIFs.

  7. 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)

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

    I have an animated GIF that plays once (doesn't loop). I would like it to animate when clicked. I tried something like this: $('#plus').click(function(){ $('#plus').attr('src',''); $('#pl...

  9. Element: animate() method - Web APIs | MDN - MDN Web Docs

    Apr 3, 2025 · Learn about the Element.animate () method, including its syntax, code examples, specifications, and browser compatibility.

  10. Basic animations - Web APIs | MDN - MDN Web Docs

    Oct 30, 2024 · Since we're using JavaScript to control <canvas> elements, it's also very easy to make (interactive) animations. In this chapter we will take a look at how to do some basic animations. Probably the biggest limitation is, that once a shape gets drawn, it stays that way.

  11. Some results have been removed
Refresh