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 6785561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:08:30+00:00 2026-05-26T17:08:30+00:00

Webpage is – http://schnell.dreamhosters.com/spriteanimate.html Just go to the page and ‘View Source’ and you’ll

  • 0

Webpage is – http://schnell.dreamhosters.com/spriteanimate.html

Just go to the page and ‘View Source’ and you’ll see all the code.

Right now it’s pretty simple. Right arrow key makes X go right, left arrow key makes him go left. He does a running animation in the proper direction and the actual image element moves in the same direction.

The major issue I have with this right now is optimization. If you play around with it a little you’ll notice that the running animation isn’t always smooth and for the first few seconds it feels very laggy, like it’s still loading something. The animation for going left is particularly guilty of this. Another problem is with the .animate() from jQuery. It does a sort of stop-and-go motion and you can tell. The movement of the image element is jerky and not very smooth.

The .animate() from jQuery can be tweaked with easing and such, but I’m not entirely sure if that’s the answer and that still leaves me with the occasional running lag or something. So does anyone have any suggestions?

  • 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-26T17:08:31+00:00Added an answer on May 26, 2026 at 5:08 pm

    Use image preloading for the sprite images, or better still, use one image as a sprite, and instead of swapping the image file, shift the position of the image file. You need to set the image as a background image and shift the background position to achieve this.

    Also, use linear easing, otherwise it will default to swing, which enters and exits slowly.

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

Sidebar

Related Questions

The webpage is here: http://develop.macmee.com/testdev/ I'm talking about when you click the ? on
I just opened a webpage in safari and what did I see? The whole
When viewing a webpage, tab can be used to cycle through the page's links
This webpage looks fine in dreamweaver but when I view it in any browser,
The webpage has the following source (only copied the important part): <h1>Relatórios</h1> <div id=textmenu>
I made a webpage that I can view in two ways. If I run
I'm writing a webpage, which will fully support mobile browsers. The page currently uses
My webpage contains two textboxes. By default the page focus is on first textbox.
My webpage animates scrolling when users click on links to the same page. I
I have built a webpage, splashcreen.html , that when someone loads index.php will automatically

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.