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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:03:12+00:00 2026-06-02T04:03:12+00:00

Possible Duplicate: Safari: Absolutely positioned DIVs not moving when updated via DOM This answer

  • 0

Possible Duplicate:
Safari: Absolutely positioned DIVs not moving when updated via DOM

This answer to another question explains a small hack that lets you use jQuery to animate an element’s rotation.

In my situation, I wanted to animate an element’s rotation simultaneously with its top: and left: properties. So I came up with this fiddle.

function transformThing() {
    $('#thing').animate({ top: '+=50', left: '+=50', borderSpacing: -90 }, {
        step: function(now,fx) {
            if(fx.prop === 'borderSpacing') {
                $(this).css('-webkit-transform','rotate('+now+'deg)');
                $(this).css('-moz-transform','rotate('+now+'deg)'); 
                $(this).css('transform','rotate('+now+'deg)'); 
            }
        },
        duration: 1000
    }, 'swing');
}
$(document).ready(function() {
    $('#thing').click(function () {
        transformThing();
    });
});

Clicking the square should rotate it and move it down and to the right. And this is what it does, except in Safari. I’m running Safari 5.1.5 on Mac OS X 10.7.3, and only the rotation animates.

A coworker found this jQuery plugin that lets you do the same thing with cleaner syntax, but it exhibits the same problem.

If you look in the Web Inspector, you can see the top: and left: values changing, and in fact they change to the correct values; but they don’t affect the visual layout of the element unless you turn them off and on again.

Clearly, the answer is “Um, duh, it’s a Safari bug.” But is there any deeper explanation that might help me find a workaround, or anything else I can try?

  • 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-02T04:03:13+00:00Added an answer on June 2, 2026 at 4:03 am

    the short answer is it wont work in safari. but the good news is it works fine if you use canvas like this example : http://beta.rallyinteractive.com/ the work animations rotate / transform / animate a sprite. Its really the only type of answer i can see anyone giving you.

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

Sidebar

Related Questions

Possible Duplicate: padding is not working in Safari and IE in select list So
Possible Duplicate: Disable select option in IOS Safari Since safari mobile browser do not
Possible Duplicate: iOS - Detecting whether or not device support phone calls? I'm writing
Possible Duplicate: php == vs === operator Reference - What does this symbol mean
Possible Duplicate: iPhone Safari: check if URL scheme is supported in javascript? For example,
Possible Duplicate: Cross-browser CSS Ok, so the question might be somehow a little confusing.
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
Possible Duplicate: Hiding textarea resize handle in Safari in textarea input the user can
Possible Duplicate: iPhone Mobile Safari File System Access I want to open a locally

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.