Skip to content

Commit

Permalink
Add imageFadeDuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh committed Oct 30, 2016
1 parent c167892 commit 6d5f99a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
Lightbox.defaults = {
albumLabel: 'Image %1 of %2',
alwaysShowNavOnTouchDevices: false,
fadeDuration: 500,
fadeDuration: 600,
fitImagesInViewport: true,
imageFadeDuration: 600,
// maxWidth: 800,
// maxHeight: 600,
positionFromTop: 50,
Expand Down Expand Up @@ -363,7 +364,7 @@
// Display the image and its details and begin preload neighboring images.
Lightbox.prototype.showImage = function() {
this.$lightbox.find('.lb-loader').stop(true).hide();
this.$lightbox.find('.lb-image').fadeIn('slow');
this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);

this.updateNav();
this.updateDetails();
Expand Down

0 comments on commit 6d5f99a

Please sign in to comment.