Skip to content

Commit 6d5f99a

Browse files
committed
Add imageFadeDuration option
1 parent c167892 commit 6d5f99a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/lightbox.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
Lightbox.defaults = {
4242
albumLabel: 'Image %1 of %2',
4343
alwaysShowNavOnTouchDevices: false,
44-
fadeDuration: 500,
44+
fadeDuration: 600,
4545
fitImagesInViewport: true,
46+
imageFadeDuration: 600,
4647
// maxWidth: 800,
4748
// maxHeight: 600,
4849
positionFromTop: 50,
@@ -363,7 +364,7 @@
363364
// Display the image and its details and begin preload neighboring images.
364365
Lightbox.prototype.showImage = function() {
365366
this.$lightbox.find('.lb-loader').stop(true).hide();
366-
this.$lightbox.find('.lb-image').fadeIn('slow');
367+
this.$lightbox.find('.lb-image').fadeIn(this.options.imageFadeDuration);
367368

368369
this.updateNav();
369370
this.updateDetails();

0 commit comments

Comments
 (0)