Skip to content

Commit

Permalink
remove useless fade
Browse files Browse the repository at this point in the history
  • Loading branch information
makryl committed Mar 10, 2014
1 parent 294ef05 commit a88666b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions abigimage.jquery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* http://aeqdev.com/tools/js/abigimage/
* v 1.2.3
* v 1.2.4
*
* Copyright © 2014 Maksim Krylosov <[email protected]>
*
Expand Down Expand Up @@ -94,7 +94,7 @@

i = openI;

t.img.stop().fadeOut(opts.fadeOut)
t.img
.removeAttr('src') // To re-fire load event if same image opened
.attr('src', $(t[i]).attr('href'));

Expand All @@ -109,8 +109,6 @@
}

this.img.load(function() {
t.img.stop().fadeIn(opts.fadeIn);

// preload prev and next images after viewed images loaded
t.imgNext.attr('src', $(t[nextI()]).attr('href'));
t.imgPrev.attr('src', $(t[prevI()]).attr('href'));
Expand Down Expand Up @@ -180,18 +178,19 @@
closeBtnBoxCSS: {position: 'absolute', zIndex: 104, top: 0, bottom: 0, right: 0},

prevBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: .5,
padding: '0 1em', borderRadius: '0 0 1ex 0'},
padding: '0 1em', borderRadius: '0 0 1ex 0'},
closeBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: .5,
padding: '0 1em', borderRadius: '0 0 0 1ex'},
padding: '0 1em', borderRadius: '0 0 0 1ex'},

prevBtnHoverCSS: {opacity: 1},
closeBtnHoverCSS: {opacity: 1},

imgCSS: {position: 'absolute', zIndex: 102, margin: 'auto', top: 0, right: 0, bottom: 0, left: 0,
imgCSS: {position: 'absolute', zIndex: 102, margin: 'auto', width: 'auto',
top: 0, right: 0, bottom: 0, left: 0,
display: 'block', cursor: 'pointer', maxWidth: '100%', maxHeight: '100%'},

imgNextCSS: {position: 'absolute', top: '-10000px', width: '100px'},
imgPrevCSS: {position: 'absolute', top: '-10000px', width: '100px'},
imgNextCSS: {position: 'absolute', top: '-10000px', left: 0, width: '1px'},
imgPrevCSS: {position: 'absolute', top: '-10000px', left: 0, width: '1px'},

bottomCSS: {position: 'absolute', zIndex: 103, right: 0, bottom: 0, left: 0,
'-webkit-user-select': 'text', '-moz-user-select': 'text', 'user-select': 'text',
Expand Down
2 changes: 1 addition & 1 deletion abigimage.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abigimage",
"version": "1.2.3",
"version": "1.2.4",
"title": "ABigImage - view big versions of images",
"author": {
"name": "Maksim Krylosov",
Expand Down
2 changes: 1 addition & 1 deletion abigimage.jquery.min.js

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

0 comments on commit a88666b

Please sign in to comment.