From 5de0e879f6664227507a6ac90aefaa1407aa490a Mon Sep 17 00:00:00 2001 From: Arinas Date: Wed, 21 Oct 2020 08:54:40 +0200 Subject: [PATCH] Added new option fadeSpeed. This will fix #147 and #186 --- README.md | 2 ++ bower.json | 2 +- demo/index.html | 17 ++++++++++----- dist/simple-lightbox.css | 2 +- dist/simple-lightbox.esm.js | 34 ++++++++++++++++-------------- dist/simple-lightbox.jquery.js | 34 ++++++++++++++++-------------- dist/simple-lightbox.jquery.min.js | 2 +- dist/simple-lightbox.js | 34 ++++++++++++++++-------------- dist/simple-lightbox.legacy.js | 34 ++++++++++++++++-------------- dist/simple-lightbox.legacy.min.js | 2 +- dist/simple-lightbox.min.css | 2 +- dist/simple-lightbox.min.js | 2 +- dist/simple-lightbox.modules.js | 34 ++++++++++++++++-------------- package-lock.json | 6 +++--- package.json | 2 +- src/license-notice.txt | 2 +- src/simple-lightbox.js | 32 +++++++++++++++------------- 17 files changed, 132 insertions(+), 111 deletions(-) diff --git a/README.md b/README.md index ae8df33..e57eb35 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ For a whole example just look at the demo folder. | htmlClass | 'has-lightbox' | string or false | adds class to html element if lightbox is open. If empty or false no class is set | | rtl | false | bool | change direction to rigth-to-left | | fixedClass | 'sl-fixed' | string | elements with this class are fixed and get the right padding when lightbox opens | +| fadeSpeed | 300 | int | the duration for fading in and out in milliseconds. Used for caption fadein/out too. If smaller than 100 it should be used with animationSlide:false | ### Events | Name | Description | @@ -206,6 +207,7 @@ Run `gulp watch` to enable continous watching of both src/simple-lightbox.js and Just call `gulp build` to have all files and variants created inside dist! ### Changelog +**2.5.0 - Added new option fadeSpeed. This will fix #147 and #186** **2.4.1 - Added new simple-lightbox.legacy.js with IE 11 Support. Fixes #175, #178, #183 and some other bugs from 2.4.0** **2.4.0 - Added new option for fixed elements class #195** **2.3.0 - Merged Feature for ESM Modules. Thanks to Dmytro Hrynevych #180** diff --git a/bower.json b/bower.json index 76db844..4619e6a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "simplelightbox", - "version": "2.4.1", + "version": "2.5.0", "homepage": "https://simplelightbox.com/", "authors": [ "André Rinas (https://www.andrerinas.de)" diff --git a/demo/index.html b/demo/index.html index 5ac2187..df975eb 100644 --- a/demo/index.html +++ b/demo/index.html @@ -4,7 +4,7 @@ - + SimpleLightbox by André Rinas @@ -14,7 +14,7 @@
-

SimpleLightbox v2.4.1

+

SimpleLightbox v2.5.0

Touch-friendly image lightbox
- + - +
@@ -389,6 +389,12 @@

JavaScript Options

string elements with this class are fixed and get the right padding when lightbox opens + + fadeSpeed + 300 + int + the duration for fading in and out in milliseconds. Used for caption fadein/out too. If smaller than 100 it should be used with animationSlide:false +
@@ -599,6 +605,7 @@

Customization

Changelog

+ 2.5.0 - Added new option fadeSpeed. This will fix #147.
2.4.1 - Added new simple-lightbox.legacy.js with IE 11 Support
2.4.0 - Added new option for fixed elements class #195
2.3.0 - Merged Feature for ESM Modules. Thanks to Serafin Lichtenhahn #173
@@ -704,7 +711,7 @@

Author/
Contributors

integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"> - +