Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using tranlateY() is still not using hardware acceleration.</p> <p>If you still want to use jQuery Mobile for the toggle effect, you should make changes to the Jquery Mobile CSS.</p> <p>Look for this:<br></p> <pre><code>.slide.in { -webkit-transform: translateX(0); -webkit-animation-name: slideinfromright; } .slide.out { -webkit-transform: translateX(-100%); -webkit-animation-name: slideouttoleft; } @-webkit-keyframes slideinfromright { from { -webkit-transform: translateX(100%); } to { -webkit-transform: translateX(0); } } @-webkit-keyframes slideouttoleft { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-100%); } } </code></pre> <p>(see here <a href="http://jquerymobile.com/demos/1.1.0-rc.1/docs/pages/page-customtransitions.html" rel="nofollow">http://jquerymobile.com/demos/1.1.0-rc.1/docs/pages/page-customtransitions.html</a>)<br><br> And change:<br></p> <pre><code>"translateX(-100%)" to "translate3d(-100%,0,0)"&lt;br&gt; "translateX(0)" to "translate3d(0,0,0)"&lt;br&gt; "translateX(100%)" to "translate3d(100%,0,0)" </code></pre> <p>This will make jQuery for mobile transition smoother for webkit devices.</p> <p>From Webkit:<br></p> <blockquote> <p>translate3d(x, y, z) Move the element in x, y and z, and just move the element in z. Positive z is towards the viewer. Unlike x and y, the z value cannot be a percentage. <a href="https://www.webkit.org/blog/386/3d-transforms/" rel="nofollow">https://www.webkit.org/blog/386/3d-transforms/</a> </blockquote> <p>It's known that the use of translate3d pushes CSS animations into hardware acceleration. Even if you're looking to do a basic 2d translation, use translate3d for more power!</p> <p><a href="http://davidwalsh.name/translate3d" rel="nofollow">http://davidwalsh.name/translate3d</a></p> <p>This way you can achieve what you're looking for.</p> <p>Diego Trigo</p>
    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. This table or related slice is empty.
    1. 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