torkiljohnsen / swipe

jQuery plugin that adds mobile touch swipe event handling, and allows for vertical scrolling.
http://torkiljohnsen.com/demo/layered-mobile-nav/
183 stars 17 forks source link

Use css transforms for hardware acceleration. Fall back to jQuery if need be. #25

Open torkiljohnsen opened 12 years ago

torkiljohnsen commented 12 years ago

http://www.modernizr.com/docs/

See: Isotope uses a Modernizr feature detect to use transitions along with transforms to achieve full hardware acceleration when possible, falling back to jQuery-based animation otherwise.

torkiljohnsen commented 12 years ago

See transform-calls done here: https://github.com/bradbirdsall/Swipe/blob/master/swipe.js

torkiljohnsen commented 12 years ago

Vendor prefix hell looks like this in CSS:

-webkit-transform : translate3d(175px, 0, 0); -moz-transform : translate(175px, 0); -ms-transform : translate(175px, 0); -o-transform : translate(175px, 0); transform : translate(175px, 0);

torkiljohnsen commented 11 years ago

This project seems to have solved this already: https://github.com/acolangelo/jPanelMenu/blob/master/jPanelMenu-1.0.0.js