diff --git a/examples/js/jquery.sliphover.js b/examples/js/jquery.sliphover.js
index ff1e11a..78b7a76 100644
--- a/examples/js/jquery.sliphover.js
+++ b/examples/js/jquery.sliphover.js
@@ -1,5 +1,5 @@
/*
- * jquery sliphover 1.1.3
+ * jquery sliphover 1.1.4
* apply 2d/3d hover animation to images
*
* inspired by http://tympanus.net/TipsTricks/DirectionAwareHoverEffect/index2.html
@@ -122,13 +122,15 @@
return this.style.position !== 'static';
}).length,
targetOffset = notStaticParents ? $target.position() : $target.offset(),
- targetWidth = $target.innerWidth(),
- targetHeight = $target.innerHeight(),
+ // targetWidth = $target.innerWidth(),
+ // targetHeight = $target.innerHeight(),
+ targetWidth = $target.outerWidth(),
+ targetHeight = $target.outerHeight(),
borderWidth = ($target.outerWidth() - $target.innerWidth()) / 2,
- // containerTop=notStaticParents?borderWidth:(targetOffset.top+borderWidth),
- // containerLeft=notStaticParents?borderWidth:(targetOffset.left+borderWidth),
- containerTop = targetOffset.top + borderWidth,
- containerLeft = targetOffset.left + borderWidth,
+ // containerTop = targetOffset.top + borderWidth,
+ // containerLeft = targetOffset.left + borderWidth,
+ containerTop = targetOffset.top,
+ containerLeft = targetOffset.left,
$container = $('
').insertBefore($target);
//if in 3d flip style, set the perspective css property for the container
if (this.options.flip) {
diff --git a/examples/js/jquery.sliphover.min.js b/examples/js/jquery.sliphover.min.js
index 345e6e1..48767ed 100644
--- a/examples/js/jquery.sliphover.min.js
+++ b/examples/js/jquery.sliphover.min.js
@@ -1,5 +1,5 @@
/*
- * jquery sliphover 1.1.3
+ * jquery sliphover 1.1.4
* apply 2d/3d hover animation to images
*
* inspired by http://tympanus.net/TipsTricks/DirectionAwareHoverEffect/index2.html
@@ -13,4 +13,4 @@
* mail to liuwayong@gmail.com
* or visit the project on github https://github.com/Wayou/SlipHover to open issues
*/
-;(function($,window,document,undefined){'use strict';var L=function(aB,options){this.j=aB,this.options=$.extend({},this.defaults,options)};L.prototype={defaults:{target:'img',title:'title',duration:'fast',fontColor:'#ffffff',backgroundColor:'rgba(0,0,0,.5)',reverse:false,flip:false,autoScroll:true,scrollSpeed:40,height:'100%'},ai:{l:{'left':'0','bottom':'0'},al:{'left':'0','bottom':'100%'},aW:{'left':'100%','bottom':'0'},aX:{'left':'0','bottom':'-100%'},bN:{'left':'-100%','bottom':'0'}},t:{bg:{'perspective-origin':'50% 0%','-webkit-perspective-origin':'50% 0%'},ac:{'perspective-origin':'100% 50%','-webkit-perspective-origin':'100% 50%'},ad:{'perspective-origin':'50% 100%','-webkit-perspective-origin':'50% 100%'},aU:{'perspective-origin':'0% 50%','-webkit-perspective-origin':'0% 50%'}},aJ:'@-webkit-keyframes topenter{ from{ -webkit-transform-origin:top; -webkit-transform:rotateX(-90deg); } to{ -webkit-transform-origin:top; -webkit-transform:rotateX(0deg); } } @keyframes topenter{ from{ transform-origin:top; transform:rotateX(-90deg); } to{ transform-origin:top; transform:rotateX(0deg); } } @-webkit-keyframes topleave{ from{ -webkit-transform-origin:top; -webkit-transform:rotateX(0deg); } to{ -webkit-transform-origin:top; -webkit-transform:rotateX(-90deg); } } @keyframes topleave{ from{ transform-origin:top; transform:rotateX(0deg); } to{ transform-origin:top; transform:rotateX(-90deg); } } @-webkit-keyframes rightenter{ from{ -webkit-transform-origin:right; -webkit-transform:rotateY(-90deg); } to{ -webkit-transform-origin:right; -webkit-transform:rotateY(0deg); } } @keyframes rightenter{ from{ transform-origin:right; transform:rotateY(-90deg); } to{ transform-origin:right; transform:rotateY(0deg); } } @-webkit-keyframes rightleave{ from{ -webkit-transform-origin:right; -webkit-transform:rotateY(0deg); } to{ -webkit-transform-origin:right; -webkit-transform:rotateY(-90deg); } } @keyframes rightleave{ from{ transform-origin:right; transform:rotateY(0deg); } to{ transform-origin:right; transform:rotateY(-90deg); } } @-webkit-keyframes bottomenter{ from{ -webkit-transform-origin:bottom; -webkit-transform:rotateX(90deg); } to{ -webkit-transform-origin:bottom; -webkit-transform:rotateX(0deg); } } @keyframes bottomenter{ from{ transform-origin:bottom; transform:rotateX(90deg); } to{ transform-origin:bottom; transform:rotateX(0deg); } } @-webkit-keyframes bottomleave{ from{ -webkit-transform-origin:bottom; -webkit-transform:rotateX(0deg); } to{ -webkit-transform-origin:bottom; -webkit-transform:rotateX(90deg); } } @keyframes bottomleave{ from{ transform-origin:bottom; transform:rotateX(0deg); } to{ transform-origin:bottom; transform:rotateX(90deg); } } @-webkit-keyframes leftenter{ from{ -webkit-transform-origin:left; -webkit-transform:rotateY(90deg); } to{ -webkit-transform-origin:left; -webkit-transform:rotateY(0deg); } } @keyframes leftenter{ from{ transform-origin:left; transform:rotateY(90deg); } to{ transform-origin:left; transform:rotateY(0deg); } } @-webkit-keyframes leftleave{ from{ -webkit-transform-origin:left; -webkit-transform:rotateY(0deg); } to{ -webkit-transform-origin:left; -webkit-transform:rotateY(90deg); } } @keyframes leftleave{ from{ transform-origin:left; transform:rotateY(0deg); } to{ transform-origin:left; transform:rotateY(90deg); } }',bj:function(aB,options){var V=this,j=aB||this.j,options=options||this.options,bp=j.find(options.target).size()>0?j.find(options.target):j;if(this.options.flip){var bs=$('style').length===0?$('