Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions jquery.transit.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
enabled: true,

// Set this to false if you don't want to use the transition end property.
useTransitionEnd: false
useTransitionEnd: false,

// Set this to true to force the use of 3d versions of transforms in Chrome
use3dChrome: false
};

var div = document.createElement('div');
Expand Down Expand Up @@ -152,7 +155,8 @@
// forcing Chrome to not use the 3d transforms as well. Not sure if
// translate is affectede, but not risking it. Detection code from
// http://davidwalsh.name/detecting-google-chrome-javascript
if (support.transform === 'WebkitTransform' && !isChrome) {
if (support.transform === 'WebkitTransform' &&
(!isChrome || $.transit.use3dChrome)) {
elem.style[support.transform] = value.toString(true);
} else {
elem.style[support.transform] = value.toString();
Expand Down