Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well this turned out not to be simple... Spudley's comment confirmed my suspicion that it's worth writing off manually entered CSS as a lost cause. It seems there's no simple way to make IE rotations match other browsers in origin without very complex matrix calculations to rotate and translate <em>and also</em> another calculation for how much to offset the object post-rotation using <code>top:</code> <code>left:</code> etc...</p> <hr> <p>The option that seems to work best - least code, fewest non-standard dependencies - was <code>jquery.transform2d.js</code> via the <strong><a href="https://github.com/louisremi/jquery.transform.js">louisremi branch of jquery.transform</a></strong>.</p> <p>Here's an example demo where the rotation position is virtually pixel-perfect between IE7, IE8, IE9+ and Firefox, Chrome, etc - <strong><a href="http://jsbin.com/ejiqov/3">http://jsbin.com/ejiqov/3</a></strong>. </p> <p>Apply rotations like this: <code>$('somejQuery').css('transform','rotate(90degs)');</code> or for <strong>animated rotation</strong>, like this: <code>$('somejQuery').animate('transform','rotate(90degs)');</code></p> <p>That demo shows the one limitation I've come across so far (touch wood) with the Jquery Transform plugin for simple rotation (other than requiring jQuery):</p> <ul> <li>It erases any positioning (<code>top:</code>, <code>left:</code>) on the element that it rotates. <ul> <li>Workaround: Apply positioning to a wrapper element, and rotate the inner element. This seems to work fine (see demo above)</li> </ul></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload