Skip to content

Commit

Permalink
Prepare v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nnattawat committed Oct 20, 2016
1 parent a6f875a commit d765488
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flip",
"version": "1.1.1",
"version": "1.1.2",
"license": "MIT",
"dependencies": {
"jquery": "~2.0"
Expand Down
13 changes: 8 additions & 5 deletions dist/jquery.flip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! flip - v1.1.1 - 2016-05-25
/*! flip - v1.1.2 - 2016-10-20
* https://github.com/nnattawat/flip
* Copyright (c) 2016 Nattawat Nonsung; Licensed MIT */
(function( $ ) {
Expand Down Expand Up @@ -172,7 +172,8 @@
};
var backElementCss = {
"transform": rotateAxis + "(" + (self.setting.reverse ? "180deg" : "-180deg") + ")",
"z-index": "0"
"z-index": "0",
"position": "relative"
};
var faceElementCss = {
"backface-visibility": "hidden",
Expand All @@ -199,12 +200,14 @@
elementCss["-webkit-transform-style"] = "preserve-3d";
}

self.element.css(elementCss);
self.backElement.css(backElementCss);

faces.css(faceElementCss).find('*').css({
"backface-visibility": "hidden"
});

self.element.css(elementCss);
self.backElement.css(backElementCss);

// #39
// not forcing width/height may cause an initial flip to show up on
// page load when we apply the style to reverse the backface...
Expand All @@ -225,7 +228,7 @@

// While this used to work with a setTimeout of zero, at some point that became
// unstable and the initial flip returned. The reason for this is unknown but we
// will temporarily use a short delay of 20 to mitigate this issue.
// will temporarily use a short delay of 20 to mitigate this issue.
}, 20);

self.attachEvents();
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.flip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d765488

Please sign in to comment.