benbarnett/jQuery-Animate-Enhanced — Issue #65: auto detect for translate3d and use if available
Author: baseten
Created: 2012-01-03 12:02:35+00:00
State: open

Hey, great plugin!

Just wondered if rather than passing use3d as an option, whether it's possible to autodetect? The following snippet will test by checking the length of the matrix:

var has3d = 'WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix();

Obviously it assumes a webkit browser, but currently I believe these are the only to support 3d anyway.