Skip to content

Commit

Permalink
Fixed transition property being lost on Edge, IE11, ..
Browse files Browse the repository at this point in the history
  • Loading branch information
JemarJones committed Aug 12, 2015
1 parent f51b1f0 commit c0dd782
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/flip.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
}
if (changeNeeded){
var faces = $(this).find($(this).data("front")).add($(this).data("back"), $(this));
var savedTrans = faces.css("transition");
var savedTrans = faces.css(["transition-property", "transition-timing-function", "transition-duration", "transition-delay"]);
faces.css({
transition: "none"
});
Expand All @@ -260,9 +260,7 @@
}
//Providing a nicely wrapped up callback because transform is essentially async
setTimeout(function(){
faces.css({
transition: savedTrans
});
faces.css(savedTrans);
callback.call(this);
}.bind(this),0);
}else{
Expand Down

0 comments on commit c0dd782

Please sign in to comment.