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

  • Home
  • SEARCH
  • 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 6320801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:02:22+00:00 2026-05-24T16:02:22+00:00

I have small animation using javascript and css. I made one sprite png file,

  • 0

I have small animation using javascript and css. I made one sprite png file, composed of 24 frames, and put that image as background-image in div which has height and width of one frame.

When animation starts, javascript function is changing background-position values, so every 6 miliseconds we see next frame.

Animation is smooth, but I’m testing everything on local server, so I can’t tell: is background-image loading whole image or just visible part?

What I mean is, is whole image preloaded, or some browsers, somehow, load just part of png that’s visible and don’t preload rest? If that’s the case, I’ll preload image some other way.

Anybody knows this?

  • 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-05-24T16:02:22+00:00Added an answer on May 24, 2026 at 4:02 pm

    Its loading the whole image initially.

    Your CSS is making a HTTP request for that file, and then your CSS is styling the position of this image.

    I believe one of the benefits of a sprite is that only one HTTP request is made, which is then used to display different graphics depending on positioning.

    Read more details on this article:

    http://css-tricks.com/158-css-sprites/

    The idea was that the computer could fetch a graphic into memory, and
    then only display parts of that image at a time, which was faster than
    having to continually fetch new images.

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

Sidebar

Related Questions

I have a sprite animation, a small cannon rendered using a 3D app. I
I have small utility that does some processing on a file and changes the
I have used JQuery for a small animation work: a table #photos contains 9
I have a small problem with UINavigationController animation between two view. My application build
I have small database of business and their addresses. Using the Google Geocode API
I have small web app that generate PDF files as a report. I'm trying
I am using small plugin to jquery: jquery-plugin-autoresize But i have trouble with using
I have datagridviews on windows form, i am adding records to datagridview using small
I have an event listener that calls two animation actions. Unfortunately their starts are
I have a few panels that I slide horizontally using the animate function that

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.