Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
image offset feature restored
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jun 24, 2014
1 parent 838291d commit e3b7444
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jquery.BlackAndWhite.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@

var img = $img[0],
src = img.src,
offset = $img.position(),
css = {
top: offset.top,
left: offset.left,
position: 'absolute',
'-webkit-transform': 'translate3d(0,0,0)', // fix for webkit browsers
opacity: invertHoverEffect ? 0 : 1
Expand Down
3 changes: 3 additions & 0 deletions src/jquery.BlackAndWhite.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@

var img = $img[0],
src = img.src,
offset = $img.position(),
css = {
top: offset.top,
left: offset.left,
position: 'absolute',
'-webkit-transform': 'translate3d(0,0,0)', // fix for webkit browsers
opacity: invertHoverEffect ? 0 : 1
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.BlackAndWhite.min.js

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

0 comments on commit e3b7444

Please sign in to comment.