Skip to content

Commit

Permalink
Fix to z-layer scaling to 0 with scale3d(x,y,z)
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Steckel committed Dec 20, 2011
1 parent 4517eb3 commit 28aa6aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.transit.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@

for (var i in this) {
if ((this.hasOwnProperty(i)) && (i[0] !== '_')) {
if ((use3d) && ((i === 'scale') || (i === 'translate')))
if (use3d && (i === 'scale'))
re.push(i + "3d(" + this[i] + ",1)");
if (use3d && (i === 'translate'))
re.push(i + "3d(" + this[i] + ",0)");
else
re.push(i + "(" + this[i] + ")");
Expand Down

0 comments on commit 28aa6aa

Please sign in to comment.