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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:02:21+00:00 2026-06-10T18:02:21+00:00

As an experiment, I am trying to replicate the Sprite functionality of AS3 in

  • 0

As an experiment, I am trying to replicate the Sprite functionality of AS3 in JavaScript without using the canvas object. I thought that using absolutely positioned divs and manipulating their css properties would be a no brainer, however in Chrome the animation introduces strange artifacts (seemingly because of redraw issues).

I can not find what I am doing wrong? The code is, in fact, quite simple. Here are some points that I tried which didn’t help:

  • Using relatively positioned divs (as opposed to absolutely positioned.)
  • Using margins (as opposed to top & left properties.)
  • Appending objects directly to body (as opposed to appending to a container div.)
  • Using setTimeout (as opposed to requestAnimationFrame)

You can see a simplified fiddle here: http://jsfiddle.net/BVJYJ/2/

EDIT: http://jsfiddle.net/BVJYJ/4/

And here you can see the artifacts on my browser:

The artifacts in Chrome

This may be a bug in my setup (Windows 7 64 bit, Chrome 21.0.1180.75). No other browsers exhibit this behaviour. I’d greatly appreciate if someone could comment on what I could be doing wrong. I’m more curious about the reason behind this rather than a workaround btw. That said, every explanation is welcome. 🙂

EDIT: There was a bug in the sample code which resulted in using setTimeout even when I was under the impression that RAF was used. requestAnimationFrame solves the issue with basic transformation but the issue remains with CSS transformations such as rotation.

The artifacts in Chrome with rotation transformation.

  • 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-10T18:02:22+00:00Added an answer on June 10, 2026 at 6:02 pm

    I had the same problem with my liteAccordion plugin. It can be fixed by setting the backface visibility to hidden on the element you’re animating, as you can see here: http://jsfiddle.net/ZPQBp/1/

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

Sidebar

Related Questions

I'm doing a little experiment trying to randomly place images inside a div using
I'm trying experiment with DabbleDB to see if it's something that I could use
I'm trying to experiment with Microsoft.Web.Administration on my Windows 7 x64 box, using Visual
I am trying to experiment using basic shaders in my program, I came across
I'm trying to experiment with using splice ( man 2 splice ) to copy
I'm trying to experiment with SVG on Firefox. Since I'm using jQuery, I'd like
In my spare time am trying to learn javascript & jQuery. I generally experiment
I'm just trying to experiment some ListBox functionality in the SelectionChanged event. I have
I am trying to experiment this parameter in MapReduce and I have some question.
As an experiment I'm trying to write a generic MVP framework. I started with:

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.