Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7805195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:08:48+00:00 2026-06-02T02:08:48+00:00

In recent trends I’ve seen people animating CSS sprites using JavaScript instead of using

  • 0

In recent trends I’ve seen people animating CSS sprites using JavaScript instead of using animated GIFs?

Ex:

  • http://www.google.com/doodles/eadweard-j-muybridges-182nd-birthday (in fact, Google used this technique in other Doodles too)
  • https://everyme.com/ (‘me’ logo)
  • and many more…

Is that all just to show or experiment with technology or are there any benefits out of it. I m interested in knowing the benefits, if there. The reason I m asking is that I couldn’t figure out as in both cases we need to generate the intermediate frames (mostly using tweening technique).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T02:08:50+00:00Added an answer on June 2, 2026 at 2:08 am
    • Control

      You have no control over animated GIFs. You can’t start them, you can’t stop them. They just animate as soon as they load.

      With sprites, you can control the animation. You can start, stop and react to browser events, pan through the animation. For example, Google Doodles usually activate when you click on them.

      A nifty GIF control system can be found in the 9gag. You can start them by appending them to the DOM, and stop them by removing them and swapping them with a pre-generated “first-frame view”. But that’s as far as GIFs go.

    • Independent Instances

      When you load multiple instances of the same GIF, all these instances use the same image across the page and move at the same time. If you have a row of dancing unicorns GIFs, they’d be dancing at the same time. Synchronized dancing!

      But with sprites, even if you are using the same images, the animation relies on the underlying script. So if one sprite is animated by one script and another by another script, both animations can run independently, and differently from one another.

      This saves you from creating another GIF and it’s easy to modify since you are only changing the script.

    • Ensuring smooth animation

      Animated GIFs just animate while loading, and when the internet is slow, the animations freeze up until more of the image gets loaded.

      In contrast, the advantage of sprites is you can pre-load them, ensure all images load beforehand. This makes sure that the resources used for that animation are already loaded prior to animation to make sure it animates as smooth as possible.

      However, GIFs are still images. You can dynamically load them off the DOM and listen for a load event before you append them to the DOM.

    • Partial rendering

      With PNG sprites, you can do “partials” in the animation, breaking an animation scene to parts. For example, when a character stands still, but the arms are waving. You don’t need to animate the entire character, or the entire scene. You can place an element depicting the sprite of the character’s body in a “freeze” state while the arms are a different element that is animating. This conserves space and size of the sprite sheet. A good example for this was the 2012 Mother’s Day Doodle by Google.

      In contrast, most of the time, every frame in a GIF animation is whole image, and animates whether or not anything in it moves. The more frames, the bigger the size of the GIF.

    • GIFs just don’t scale

      GIFs were meant for icons. The ratio of file size to image size don’t scale up that well in GIFs as compared with PNG and JPG.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Traceback (most recent call last): File <pyshell#27>, line 1, in <module> server = NNTP('http://www.news.readfreenews.net')
A recent question came up about using String.Format(). Part of my answer included a
This recent question about sorting randomly using C# got me thinking about the way
In recent attempts to understand the ASP.NET GridView I have seen mst examples make
In recent years I was using MSSQL databases, and all unique records in tables
In context of recent trends in interviews i have noticed that this question arises
Recent conversations with colleagues have produced varying points of view on this matter. What
A recent Windows Update or software installation seems to have broken my one week
The Recent Projects panel on the Start Page of VS2008 Professional doesn't appear to
A recent article on Ars Technica discusses a recent study performed by the Psychology

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.