Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox is ignoring transforms/skipping transform-style changes
    text
    copied!<p>when I animate fixed layers with</p> <pre><code>$('#block1').click(function() { $('#block1').stop().animate({ translateY: -$(window).width() }, { duration: 600, step: function(now, fx) { moveTo(this, now, 0); moveTo($('#block2')[0], now, 0); } }); }); $('#block2').click(function() { $('#block1').stop().animate({ translateY: 0 }, { duration: 600, step: function(now, fx) { moveTo(this, now, 0); moveTo($('#block2')[0], now, 0); } }); }); function moveTo(elem, x, y) { elem.style['WebkitTransform'] = 'translate('+x+'px, '+y+'px)'; elem.style['transform'] = 'translate('+x+'px, '+y+'px)'; } </code></pre> <p>I made a fiddle to show the problem: <a href="http://jsfiddle.net/dkoch/zfYk6/" rel="nofollow">fiddle example</a></p> <p>and here a screen capture @ 30fps: <a href="http://www.youtube.com/watch?v=PBIJYjWF-5g" rel="nofollow">Screen capture video</a></p> <p>in FF 19.0 when I click on "bla bla ..." the animation looks good. </p> <p>But when I click on the green rectangle, sometimes/after only the green rectangle is animation, while the text is showed delayed without animation.</p> <p>tested in FF 19.0 @ big screen/frame-size and windows 7</p> <p>the css looks like: </p> <pre><code>body { background: url(http://whiteboard.is/img/dot-pattern.png), #cccccc; } #block1 { width: 100%; height: 120%; position: fixed; } h1, h2 { display: inline-block; line-height: 1; text-transform: uppercase; background: #ffffff; font-weight: 900; padding: 0.1em 0.2em; position: relative; margin: 0 0 10px 0; color: #3a3d30; font-size: 2em; z-index: 5; -moz-box-shadow: 0px 0px 18px 5px rgba(0, 0, 0, 0.4); -webkit-box-shadow: 0px 0px 18px 5px rgba(0, 0, 0, 0.4); box-shadow: 0px 0px 18px 5px rgba(0, 0, 0, 0.4); } .child1 { width: 600px; left: 50%; text-align: center; position: absolute; margin-left: -300px; margin-top: 80px; z-index: 9; -webkit-transform: translate3d(0, 0, 0); -webkit-transform-style: preserve-3d; -webkit-backface-visibility: hidden; -webkit-perspective: 1000; -moz-transform: translate3d(0, 0, 0); -moz-transform-style: preserve-3d; -moz-backface-visibility: hidden; -moz-perspective: 1000; transform: translate3d(0, 0, 0); transform-style: preserve-3d; backface-visibility: hidden; perspective: 1000; } #block2 { width: 600px; height: 400px; position: fixed; left: 150%; margin-left: -300px; background: #009900; z-index: 20; } </code></pre>
 

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