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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:23:19+00:00 2026-05-27T23:23:19+00:00

When a CSS animation is triggered and an object is positioned with CSS to

  • 0

When a CSS animation is triggered and an object is positioned with CSS to be anything other than static (relative, absolute, etc) the text inside the object suddenly goes very thin for the duration of the animation. It then reverts back to full width afterwards.

Try running this page in Safari: http://pastehtml.com/view/bjgaloxjj.html (updated for clarification)

Note that the problem disappears when the #content div is not positioned absolutely or relatively. This is for an iPad web app, and is more pronounced on the device than on a desktop.

Any ideas as to what’s causing this interference?

Edit for clarification: webkit-transform and webkit-transition must be used due to them being hardware accelerated, and this results in smoother animation.

  • 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-27T23:23:20+00:00Added an answer on May 27, 2026 at 11:23 pm

    I was able to reproduce your problem and this fixes it. You don’t need a transform to achieve the result you’re looking for, only a transition. transition by itself is hardware accelerated.

    From http://www.html5rocks.com/en/tutorials/speed/html5/#toc-hardware-accell:

    CSS Transitions make style animation trivial for everyone, but they
    also are a smart performance feature. Because a CSS transition is
    managed by the browser, the fidelity of its animation can be greatly
    improved, and in many cases hardware accelerated.

    Demo: http://jsfiddle.net/ThinkingStiff/bqSJX/

    Script:

    function doMove() {
        document.getElementById('mover').style.left = '150px';
    
        window.setTimeout( function() {
            document.getElementById('mover').style.left = '50px';
        }, 1000 );
    
    }
    
    window.setInterval( function() { doMove(); }, 3000 );
    

    CSS:

    #content {
        font-size: 150%;
        position: relative;   
    }
    
    #mover {
        font-size: 200%;
        left: 50px;
        position: absolute;
        top: 250px;
        transition: left 1.1s ease-in-out;
    }
    

    HTML:

    <div id="content">A large cake with seventeen BURNING candles is in the
        center of the table. It says "HAPPY 16TH BIRTHDAY" and
        "GOOD LUCK, WESLEY." The whole BRIDGE CREW waits
        around the table as Wesley ENTERS with Beverly. He's
        touched, embarrassed and -- wants to get out of there.</div>
    <div id="mover">SOMETHING</div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in CSS: The missing manual the author says that font-size: medium (or other size
RESOLVED: CSS Animation/Scale issue in Chrome/Webkit I asked this question previously, but I'm not
I have a short css-based animation that I want to play out before a
I have some slide animation in css. There is any chance to keep this
In Javascript/JQuery I have a need to copy one elements CSS style object to
I would like my GWT widget to be notified when its CSS animation is
I can use follow css code to do some simple animation, but I want
I am trying to apply a CSS animation to a <span> element and I
Why can't I repeat a CSS animation with javascript once? Fiddle: http://jsfiddle.net/6XtSa/
my boss asked me to create an HTML5, Javascript and CSS animation program where

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.