Skip to content

Commit 26c84c7

Browse files
committed
fix for clip to better work with images (animates wrapper for images only)
1 parent ad2a61d commit 26c84c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/effects.clip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $.effects.clip = function(o) {
3131
size: (direction == 'vertical') ? 'height' : 'width',
3232
position: (direction == 'vertical') ? 'top' : 'left'
3333
};
34-
var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
34+
var distance = (direction == 'vertical') ? animate.height() : animate.width();
3535
if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift
3636

3737
// Animation

0 commit comments

Comments
 (0)