@@ -34,8 +34,8 @@ Alternatively you can:
34
34
- Mounting HTML node fragments as slides (you can add just everything as a slide!)
35
35
- Gallery groups:
36
36
- group images to specific galleries
37
- - smart inheritance of group config
38
- - Gallery tools:
37
+ - group options inheritance
38
+ - Toolbar & Gallery tools:
39
39
- Fullscreen
40
40
- Zoom in/out
41
41
- Toggle resize
@@ -53,17 +53,15 @@ Alternatively you can:
53
53
- Fully configurable via markup
54
54
- Loading Spinner
55
55
- Prefetch next image
56
- - Custom options
56
+ - Customize via standard options
57
57
- Simply customize via markup (data-attributes)
58
- - Arrange built -in animations
58
+ - Built -in animations
59
59
- Custom themes
60
60
- Custom animations
61
- - Controls :
61
+ - Supported controls :
62
62
- Keyboard
63
63
- Touch
64
- - Mousemove
65
- - Mousewheel
66
- - Browser history detection
64
+ - Mouse (Move + Wheel)
67
65
- Back-Button (Android)
68
66
- Callbacks (onclick, onshow, onclose, onchange)
69
67
- Global API for programmatic usage
@@ -75,7 +73,7 @@ __Technical properties:__
75
73
- Event capturing (just one single global event listener)
76
74
- Bind additional global event listener dynamically:
77
75
- install when gallery opens
78
- - fully cleanup when gallery was closed
76
+ - cleanup when gallery was closed
79
77
- No dependencies, no jQuery
80
78
- Fully Responsive
81
79
- Touch-friendly mobile support
@@ -95,8 +93,8 @@ __Get Latest Stable Build (Recommended):__
95
93
</tr>
96
94
<tr>
97
95
<td>spotlight.bundle.js</td>
98
- <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4 /dist/spotlight.bundle.js" target="_blank">Download</a></td>
99
- <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/spotlight.bundle.js</a></td>
96
+ <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5 /dist/spotlight.bundle.js" target="_blank">Download</a></td>
97
+ <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/spotlight.bundle.js</a></td>
100
98
</tr>
101
99
<tr>
102
100
<td colspan=3">
@@ -105,14 +103,14 @@ __Get Latest Stable Build (Recommended):__
105
103
</tr>
106
104
<tr>
107
105
<td>spotlight.min.js</td>
108
- <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4 /dist/js/spotlight.min.js" target="_blank">Download</a></td>
109
- <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/js/spotlight.min.js</a></td>
106
+ <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5 /dist/js/spotlight.min.js" target="_blank">Download</a></td>
107
+ <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/js/spotlight.min.js</a></td>
110
108
</tr>
111
109
<tr></tr>
112
110
<tr>
113
111
<td>spotlight.min.css</td>
114
- <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4 /dist/css/spotlight.min.css" target="_blank">Download</a></td>
115
- <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /dist/css/spotlight.min.css</a></td>
112
+ <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5 /dist/css/spotlight.min.css" target="_blank">Download</a></td>
113
+ <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /dist/css/spotlight.min.css</a></td>
116
114
</tr>
117
115
<tr>
118
116
<td colspan=3">
@@ -121,25 +119,25 @@ __Get Latest Stable Build (Recommended):__
121
119
</tr>
122
120
<tr>
123
121
<td>ES6 Modules</td>
124
- <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4 /src/js" target="_blank">Download</a></td>
122
+ <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5 /src/js" target="_blank">Download</a></td>
125
123
<td>The <i>/src/js</i> folder of this Github repository</td>
126
124
</tr>
127
125
<tr></tr>
128
126
<tr>
129
127
<td>LESS Files (source)</td>
130
- <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4 /src/css" target="_blank">Download</a></td>
128
+ <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5 /src/css" target="_blank">Download</a></td>
131
129
<td>The <i>/src/css</i> folder of this Github repository</td>
132
130
</tr>
133
131
<tr></tr>
134
132
<tr>
135
133
<td>spotlight.css (compiled)</td>
136
- <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4 /src/css/spotlight.css" target="_blank">Download</a></td>
137
- <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4 /src/css/spotlight.css</a></td>
134
+ <td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5 /src/css/spotlight.css" target="_blank">Download</a></td>
135
+ <td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5 /src/css/spotlight.css</a></td>
138
136
</tr>
139
137
<tr></tr>
140
138
<tr>
141
139
<td>src.zip</td>
142
- <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4 /dist" target="_blank">Download</a></td>
140
+ <td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5 /dist" target="_blank">Download</a></td>
143
141
<td>Download all source files including image original resources.</td>
144
142
</tr>
145
143
</table >
@@ -152,7 +150,7 @@ npm install spotlight.js
152
150
153
151
__ Get Latest Nightly (Do not use for production!):__
154
152
155
- Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__ 0.7.4 __ /dist/" into "/spotlight/__ master__ /dist".
153
+ Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__ 0.7.5 __ /dist/" into "/spotlight/__ master__ /dist".
156
154
157
155
### Use Bundled Version
158
156
@@ -229,7 +227,7 @@ You can also load modules via CDN, e.g.:
229
227
230
228
``` html
231
229
<script type =" module" >
232
- import Spotlight from " https://unpkg.com/[email protected] .4 /src/js/spotlight.js" ;
230
+ import Spotlight from " https://unpkg.com/[email protected] .5 /src/js/spotlight.js" ;
233
231
</script >
234
232
```
235
233
@@ -444,7 +442,7 @@ You can either apply the following data-attributes to the ___spotlight-group___
444
442
<tr>
445
443
<td>autoplay</td>
446
444
<td>true / false</td>
447
- <td>Autoplay when opening gallery (also requires the option <b>player </b> to be set)</td>
445
+ <td>Autoplay when opening gallery (also requires the option <b>play </b> to be set)</td>
448
446
<td>false</td>
449
447
</tr>
450
448
<tr></tr>
@@ -954,12 +952,14 @@ That is the same custom like button from above example, just shorter but also no
954
952
955
953
## Embedding Node Fragments
956
954
957
- > With node fragments you can simply add everything as a slide.
955
+ > With node fragments you can simply add everything as a slide. This way you can create your own full customized slides with its own interactions inside them.
958
956
959
957
You can use this feature completely by markup by providing a query selector as "src" which points to a node in your document.
960
958
961
959
### Using Auto-Mount / Auto-Unmount
962
960
961
+ > This workaround is also compatible if you are using server-side rendering.
962
+
963
963
You can use a hidden backstore optionally which holds the fragments to be inserted as a slide, e.g.:
964
964
965
965
``` html
@@ -980,9 +980,9 @@ Provide a __dom query selector__ as "src" which points to a node in your documen
980
980
981
981
When closing the gallery or change the page to another slide, the fragment will automatically move back to its original position (the hidden backstore in this example).
982
982
983
- ### Custom Elements (API-only)
983
+ ### Custom Slides (API-only)
984
984
985
- You can add nodes as slide which are not part of the document also via the API (e.g. fragments, templates, offscreen nodes). This way you can create your own full customized slides with its own interactions inside them . Also, you can create an iframe to load extern contents.
985
+ You can add nodes as slide which are not part of the document via the API (e.g. fragments, templates, offscreen nodes). Also, you can create an iframe to load extern contents.
986
986
987
987
#### Example: Youtube Video
988
988
@@ -994,7 +994,6 @@ Spotlight.show([{
994
994
src: (function (){
995
995
const iframe = document .createElement (" iframe" );
996
996
iframe .src = " https://www.youtube.com/embed/tgbNymZ7vqY" ;
997
- iframe .height = " auto" ;
998
997
return iframe;
999
998
}())
1000
999
}]);
@@ -1167,12 +1166,14 @@ To add custom styling just override CSS classes accordingly:
1167
1166
.spl-zoom-out { /* button zoom out (toolbar) */ }
1168
1167
.spl-zoom-in { /* button zoom in (toolbar) */ }
1169
1168
.spl-theme { /* button theme (toolbar) */ }
1170
- .spl-player { /* button autoplay (toolbar) */ }
1169
+ .spl-play { /* button autoplay (toolbar) */ }
1171
1170
.spl-download { /* button download (toolbar) */ }
1172
1171
.spl-close { /* button close (toolbar) */ }
1173
1172
.spl-prev { /* button page prev */ }
1174
1173
.spl-next { /* button page next */ }
1175
1174
.spl-spinner { /* preloading spinner */ }
1175
+ .spl-spinner.spin { /* show spinner */ }
1176
+ .spl-spinner.error { /* show loading error */ }
1176
1177
.spl-title { /* image title */ }
1177
1178
.spl-description { /* image description */ }
1178
1179
.spl-button { /* button footer */ }
0 commit comments