uikit 3.25.17-dev.80dfe87 → 3.25.17-dev.8c70e44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/build/prefix.js +1 -1
- package/build/publishDev.js +1 -1
- package/build/release.js +2 -2
- package/build/scope.js +1 -1
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +892 -802
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +892 -802
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +893 -803
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +893 -803
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +133 -132
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +134 -133
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/marquee.js +179 -0
- package/dist/js/components/marquee.min.js +1 -0
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +8 -12
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +8 -12
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +41 -25
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +8 -12
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +71 -102
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +19 -19
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +754 -262
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +629 -374
- package/dist/js/uikit.min.js +1 -1
- package/package.json +2 -2
- package/src/js/api/component.js +2 -3
- package/src/js/api/observables.js +2 -4
- package/src/js/api/options.js +6 -3
- package/src/js/api/props.js +1 -4
- package/src/js/api/state.js +7 -8
- package/src/js/components/index.js +1 -0
- package/src/js/components/internal/lightbox-animations.js +7 -26
- package/src/js/components/internal/slideshow-animations.js +15 -62
- package/src/js/components/lightbox-panel.js +121 -96
- package/src/js/components/lightbox.js +5 -8
- package/src/js/components/marquee.js +123 -0
- package/src/js/components/tooltip.js +4 -2
- package/src/js/core/accordion.js +78 -29
- package/src/js/core/drop.js +5 -4
- package/src/js/core/dropnav.js +3 -3
- package/src/js/core/grid.js +5 -19
- package/src/js/core/height-match.js +1 -2
- package/src/js/core/margin.js +3 -0
- package/src/js/core/overflow-fade.js +5 -5
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/switcher.js +24 -44
- package/src/js/core/video.js +172 -15
- package/src/js/mixin/connect.js +57 -0
- package/src/js/mixin/internal/slideshow-animations.js +5 -13
- package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
- package/src/js/mixin/modal.js +4 -3
- package/src/js/mixin/parallax.js +1 -4
- package/src/js/mixin/position.js +1 -1
- package/src/js/mixin/scroll-driven.js +57 -0
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/mixin/slider-parallax.js +9 -38
- package/src/js/mixin/togglable.js +13 -14
- package/src/js/util/attr.js +7 -7
- package/src/js/util/class.js +1 -1
- package/src/js/util/dom.js +3 -4
- package/src/js/util/lang.js +1 -1
- package/src/js/util/player.js +4 -4
- package/src/js/util/style.js +10 -15
- package/src/js/util/viewport.js +22 -25
- package/src/less/components/_import.less +6 -1
- package/src/less/components/base.less +1 -1
- package/src/less/components/button.less +1 -1
- package/src/less/components/dropcap.less +71 -0
- package/src/less/components/floating-shadow.less +65 -0
- package/src/less/components/form.less +5 -5
- package/src/less/components/grid.less +57 -64
- package/src/less/components/logo.less +94 -0
- package/src/less/components/margin.less +81 -81
- package/src/less/components/marquee.less +133 -0
- package/src/less/components/nav.less +1 -1
- package/src/less/components/padding.less +9 -9
- package/src/less/components/utility.less +0 -157
- package/src/less/theme/_import.less +5 -1
- package/src/less/theme/dropcap.less +29 -0
- package/src/less/theme/floating-shadow.less +20 -0
- package/src/less/theme/logo.less +29 -0
- package/src/less/theme/marquee.less +14 -0
- package/src/less/theme/utility.less +0 -32
- package/src/scss/components/_import.scss +6 -1
- package/src/scss/components/base.scss +1 -1
- package/src/scss/components/button.scss +1 -1
- package/src/scss/components/dropcap.scss +63 -0
- package/src/scss/components/floating-shadow.scss +62 -0
- package/src/scss/components/form.scss +5 -5
- package/src/scss/components/grid.scss +57 -64
- package/src/scss/components/logo.scss +75 -0
- package/src/scss/components/margin.scss +81 -81
- package/src/scss/components/marquee.scss +136 -0
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/padding.scss +9 -9
- package/src/scss/components/utility.scss +0 -128
- package/src/scss/mixins-theme.scss +41 -32
- package/src/scss/mixins.scss +38 -29
- package/src/scss/variables-theme.scss +14 -9
- package/src/scss/variables.scss +14 -9
- package/tests/accordion.html +77 -10
- package/tests/alert.html +1 -1
- package/tests/align.html +5 -5
- package/tests/animation.html +4 -4
- package/tests/article.html +7 -7
- package/tests/background.html +2 -2
- package/tests/badge.html +1 -1
- package/tests/base.html +2 -2
- package/tests/button.html +1 -1
- package/tests/card.html +15 -15
- package/tests/close.html +2 -2
- package/tests/comment.html +9 -9
- package/tests/container.html +2 -2
- package/tests/countdown.html +21 -21
- package/tests/cover.html +3 -3
- package/tests/description-list.html +1 -1
- package/tests/divider.html +3 -3
- package/tests/dotnav.html +1 -1
- package/tests/drop.html +7 -7
- package/tests/dropbar.html +5 -5
- package/tests/dropcap.html +26 -0
- package/tests/dropdown.html +1 -1
- package/tests/dropnav.html +18 -18
- package/tests/filter.html +3 -3
- package/tests/floating-shadow.html +44 -0
- package/tests/form.html +14 -14
- package/tests/grid.html +41 -47
- package/tests/heading.html +2 -2
- package/tests/height-viewport.html +4 -4
- package/tests/height.html +5 -5
- package/tests/icon.html +8 -8
- package/tests/image.html +6 -6
- package/tests/index.html +13 -13
- package/tests/js/index.js +1 -1
- package/tests/leader.html +5 -5
- package/tests/lightbox.html +6 -6
- package/tests/link.html +1 -1
- package/tests/list.html +4 -4
- package/tests/logo.html +84 -0
- package/tests/margin.html +7 -7
- package/tests/marker.html +3 -3
- package/tests/marquee.html +617 -0
- package/tests/modal.html +3 -3
- package/tests/nav.html +5 -5
- package/tests/navbar.html +27 -27
- package/tests/notification.html +2 -2
- package/tests/offcanvas.html +12 -12
- package/tests/overlay.html +3 -3
- package/tests/padding.html +1 -1
- package/tests/pagination.html +3 -3
- package/tests/parallax.html +1 -1
- package/tests/position.html +6 -6
- package/tests/scrollspy.html +12 -12
- package/tests/search.html +5 -5
- package/tests/section.html +17 -17
- package/tests/slidenav.html +3 -3
- package/tests/slider.html +5 -5
- package/tests/slideshow.html +3 -3
- package/tests/sortable.html +15 -15
- package/tests/sticky-navbar.html +4 -4
- package/tests/sticky-parallax.html +3 -3
- package/tests/sticky.html +3 -3
- package/tests/svg.html +3 -2
- package/tests/switcher.html +6 -6
- package/tests/tab.html +4 -4
- package/tests/text.html +3 -3
- package/tests/tile.html +4 -4
- package/tests/toggle.html +1 -1
- package/tests/tooltip.html +3 -3
- package/tests/totop.html +2 -2
- package/tests/transition.html +1 -1
- package/tests/upload.html +5 -5
- package/tests/utility.html +16 -116
- package/tests/video.html +224 -24
- package/tests/visibility.html +4 -4
- package/tests/width.html +12 -12
package/tests/video.html
CHANGED
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
Lazy videos by removing preload none when entering the viewport
|
|
56
56
|
-->
|
|
57
57
|
|
|
58
|
-
<h2>
|
|
58
|
+
<h2>Autoplay</h2>
|
|
59
59
|
|
|
60
60
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
61
61
|
<div>
|
|
62
62
|
|
|
63
|
-
<h3>
|
|
63
|
+
<h3>Native</h3>
|
|
64
64
|
<!--
|
|
65
65
|
# Native Autoplay
|
|
66
66
|
Chrome: `Out of view` + `Hidden`: Stops playing.
|
|
@@ -70,61 +70,75 @@
|
|
|
70
70
|
|
|
71
71
|
<!-- `Out of view`: continous playing. `Hidden`: stops playing -->
|
|
72
72
|
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video></video>
|
|
73
|
+
|
|
73
74
|
</div>
|
|
74
75
|
<div>
|
|
75
76
|
|
|
76
|
-
<h3>
|
|
77
|
+
<h3>YouTube</h3>
|
|
78
|
+
<!--
|
|
79
|
+
# Native Autoplay `autoplay=1`
|
|
80
|
+
All browsers: `Out of view` + `Hidden`: Doesn't stop when hidden.
|
|
81
|
+
-->
|
|
82
|
+
|
|
83
|
+
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?playsinline=1&rel=0&controls=0&loop=1&mute=1" width="1920" height="1080" allowfullscreen uk-responsive class="uk-disabled" uk-video></iframe>
|
|
77
84
|
|
|
78
|
-
<!-- `Out of view` + `Hidden`: stops playing -->
|
|
79
|
-
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview"></video>
|
|
80
85
|
</div>
|
|
81
86
|
<div>
|
|
82
87
|
|
|
83
|
-
<h3>
|
|
88
|
+
<h3>Vimeo</h3>
|
|
89
|
+
|
|
90
|
+
<iframe src="https://player.vimeo.com/video/1084537?background=1&keyboard=0&muted=1" width="1920" height="1080" allowfullscreen uk-responsive class="uk-disabled" uk-video></iframe>
|
|
84
91
|
|
|
85
|
-
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: hover"></video>
|
|
86
92
|
</div>
|
|
87
93
|
</div>
|
|
88
94
|
|
|
89
|
-
<h2>
|
|
95
|
+
<h2>Autoplay Inview</h2>
|
|
90
96
|
|
|
91
97
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
92
98
|
<div>
|
|
93
99
|
|
|
94
|
-
<h3>
|
|
95
|
-
<!--
|
|
96
|
-
# Native Autoplay `autoplay=1`
|
|
97
|
-
All browsers: `Out of view` + `Hidden`: Doesn't stop when hidden.
|
|
98
|
-
-->
|
|
100
|
+
<h3>Native</h3>
|
|
99
101
|
|
|
100
|
-
|
|
102
|
+
<!-- `Out of view` + `Hidden`: stops playing -->
|
|
103
|
+
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview"></video>
|
|
101
104
|
|
|
102
105
|
</div>
|
|
103
106
|
<div>
|
|
104
107
|
|
|
105
|
-
<h3>
|
|
108
|
+
<h3>YouTube</h3>
|
|
106
109
|
|
|
107
110
|
<iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?playsinline=1&rel=0&controls=0&loop=1&mute=1" width="1920" height="1080" allowfullscreen uk-responsive class="uk-disabled" uk-video="autoplay: inview"></iframe>
|
|
108
111
|
|
|
109
112
|
</div>
|
|
113
|
+
<div>
|
|
114
|
+
|
|
115
|
+
<h3>Vimeo</h3>
|
|
116
|
+
|
|
117
|
+
<iframe src="https://player.vimeo.com/video/1084537?background=1&keyboard=0&muted=1" width="1920" height="1080" allowfullscreen uk-responsive class="uk-disabled" uk-video="autoplay: inview"></iframe>
|
|
118
|
+
|
|
119
|
+
</div>
|
|
110
120
|
</div>
|
|
111
121
|
|
|
112
|
-
<h2>
|
|
122
|
+
<h2>Autoplay Hover</h2>
|
|
113
123
|
|
|
114
124
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
115
125
|
<div>
|
|
116
126
|
|
|
117
|
-
<h3>Autoplay</h3>
|
|
118
|
-
|
|
119
|
-
<iframe src="https://player.vimeo.com/video/1084537?background=1&keyboard=0&muted=1" width="1920" height="1080" allowfullscreen uk-responsive class="uk-disabled" uk-video></iframe>
|
|
127
|
+
<h3>Autoplay Hover</h3>
|
|
120
128
|
|
|
129
|
+
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: hover"></video>
|
|
121
130
|
</div>
|
|
122
131
|
<div>
|
|
123
132
|
|
|
124
|
-
<h3>Autoplay
|
|
133
|
+
<h3>Autoplay Hover Target</h3>
|
|
125
134
|
|
|
126
|
-
<
|
|
135
|
+
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: hover; hover-target: !.uk-grid"></video>
|
|
136
|
+
</div>
|
|
137
|
+
<div>
|
|
127
138
|
|
|
139
|
+
<h3>Autoplay Hover Rewind</h3>
|
|
140
|
+
|
|
141
|
+
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: hover; hover-rewind: 3"></video>
|
|
128
142
|
</div>
|
|
129
143
|
</div>
|
|
130
144
|
|
|
@@ -167,6 +181,144 @@
|
|
|
167
181
|
</div>
|
|
168
182
|
</div>
|
|
169
183
|
|
|
184
|
+
<h2>Autoplay Parallax</h2>
|
|
185
|
+
|
|
186
|
+
<div class="uk-grid uk-child-width-1-2@s">
|
|
187
|
+
<div>
|
|
188
|
+
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline muted uk-video="autoplay: parallax; parallax-start: 100%; parallax-end: 100%"></video>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<h2>Autoplay Inview Margin (-40 0)</h2>
|
|
193
|
+
|
|
194
|
+
<div class="uk-grid uk-child-width-1-3@s">
|
|
195
|
+
<div>
|
|
196
|
+
|
|
197
|
+
<video src="https://videos.pexels.com/video-files/8675550/8675550-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
198
|
+
|
|
199
|
+
</div>
|
|
200
|
+
<div>
|
|
201
|
+
|
|
202
|
+
<video src="https://videos.pexels.com/video-files/8675542/8675542-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
203
|
+
|
|
204
|
+
</div>
|
|
205
|
+
<div>
|
|
206
|
+
|
|
207
|
+
<video src="https://videos.pexels.com/video-files/8675544/8675544-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
208
|
+
|
|
209
|
+
</div>
|
|
210
|
+
<div>
|
|
211
|
+
|
|
212
|
+
<video src="https://videos.pexels.com/video-files/8675539/8675539-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
213
|
+
|
|
214
|
+
</div>
|
|
215
|
+
<div>
|
|
216
|
+
|
|
217
|
+
<video src="https://videos.pexels.com/video-files/8675545/8675545-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
218
|
+
|
|
219
|
+
</div>
|
|
220
|
+
<div>
|
|
221
|
+
|
|
222
|
+
<video src="https://videos.pexels.com/video-files/8675540/8675540-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
223
|
+
|
|
224
|
+
</div>
|
|
225
|
+
<div>
|
|
226
|
+
|
|
227
|
+
<video src="https://videos.pexels.com/video-files/8675542/8675542-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
228
|
+
|
|
229
|
+
</div>
|
|
230
|
+
<div>
|
|
231
|
+
|
|
232
|
+
<video src="https://videos.pexels.com/video-files/8675588/8675588-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
233
|
+
|
|
234
|
+
</div>
|
|
235
|
+
<div>
|
|
236
|
+
|
|
237
|
+
<video src="https://videos.pexels.com/video-files/8675541/8675541-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
238
|
+
|
|
239
|
+
</div>
|
|
240
|
+
<div>
|
|
241
|
+
|
|
242
|
+
<video src="https://videos.pexels.com/video-files/8675548/8675548-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
243
|
+
|
|
244
|
+
</div>
|
|
245
|
+
<div>
|
|
246
|
+
|
|
247
|
+
<video src="https://videos.pexels.com/video-files/8675586/8675586-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
248
|
+
|
|
249
|
+
</div>
|
|
250
|
+
<div>
|
|
251
|
+
|
|
252
|
+
<video src="https://videos.pexels.com/video-files/8675555/8675555-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-margin: -40% 0px -40% 0px"></video>
|
|
253
|
+
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<h2>Autoplay Inview Queued (33%)</h2>
|
|
258
|
+
|
|
259
|
+
<div class="uk-grid uk-child-width-1-3@s">
|
|
260
|
+
<div>
|
|
261
|
+
|
|
262
|
+
<video src="https://videos.pexels.com/video-files/8675550/8675550-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
263
|
+
|
|
264
|
+
</div>
|
|
265
|
+
<div>
|
|
266
|
+
|
|
267
|
+
<video src="https://videos.pexels.com/video-files/8675542/8675542-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
268
|
+
|
|
269
|
+
</div>
|
|
270
|
+
<div>
|
|
271
|
+
|
|
272
|
+
<video src="https://videos.pexels.com/video-files/8675544/8675544-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
273
|
+
|
|
274
|
+
</div>
|
|
275
|
+
<div>
|
|
276
|
+
|
|
277
|
+
<video src="https://videos.pexels.com/video-files/8675539/8675539-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
278
|
+
|
|
279
|
+
</div>
|
|
280
|
+
<div>
|
|
281
|
+
|
|
282
|
+
<video src="https://videos.pexels.com/video-files/8675545/8675545-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
283
|
+
|
|
284
|
+
</div>
|
|
285
|
+
<div>
|
|
286
|
+
|
|
287
|
+
<video src="https://videos.pexels.com/video-files/8675540/8675540-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
288
|
+
|
|
289
|
+
</div>
|
|
290
|
+
<div>
|
|
291
|
+
|
|
292
|
+
<video src="https://videos.pexels.com/video-files/8675542/8675542-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
293
|
+
|
|
294
|
+
</div>
|
|
295
|
+
<div>
|
|
296
|
+
|
|
297
|
+
<video src="https://videos.pexels.com/video-files/8675588/8675588-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
<div>
|
|
301
|
+
|
|
302
|
+
<video src="https://videos.pexels.com/video-files/8675541/8675541-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
<div>
|
|
306
|
+
|
|
307
|
+
<video src="https://videos.pexels.com/video-files/8675548/8675548-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
308
|
+
|
|
309
|
+
</div>
|
|
310
|
+
<div>
|
|
311
|
+
|
|
312
|
+
<video src="https://videos.pexels.com/video-files/8675586/8675586-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
313
|
+
|
|
314
|
+
</div>
|
|
315
|
+
<div>
|
|
316
|
+
|
|
317
|
+
<video src="https://videos.pexels.com/video-files/8675555/8675555-hd_1920_1080_30fps.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview; inview-queued: 0.3"></video>
|
|
318
|
+
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
170
322
|
<h2>JavaScript Options</h2>
|
|
171
323
|
|
|
172
324
|
<table class="uk-table uk-table-striped">
|
|
@@ -183,19 +335,67 @@
|
|
|
183
335
|
<td><code>autoplay</code></td>
|
|
184
336
|
<td>Boolean, String</td>
|
|
185
337
|
<td>true</td>
|
|
186
|
-
<td>Disable or enable autoplay (`false`, `true`). Videos will stop when hidden and continue playing when leaving the viewport. Use `inview` to also stop the video when leaving the viewport. Use `hover` to play the video only on hover. Note:
|
|
338
|
+
<td>Disable or enable autoplay (`false`, `true`). Videos will stop when hidden and continue playing when leaving the viewport. Use `inview` to also stop the video when leaving the viewport. Use `hover` to play the video only on hover. Use `parallax` to connect video playback to scrolling. Note: `hover` and `parallax` do not work with iframes.</td>
|
|
187
339
|
</tr>
|
|
188
340
|
<tr>
|
|
189
341
|
<td><code>restart</code></td>
|
|
190
342
|
<td>Boolean</td>
|
|
191
343
|
<td>false</td>
|
|
192
|
-
<td>
|
|
344
|
+
<td>Seeks the video back to the beginning whenever autoplay pauses it.</td>
|
|
193
345
|
</tr>
|
|
194
346
|
<tr>
|
|
195
347
|
<td><code>hover-target</code></td>
|
|
196
348
|
<td>CSS Selector</td>
|
|
197
349
|
<td>self</td>
|
|
198
|
-
<td>
|
|
350
|
+
<td>Element used as the hover trigger when `autoplay` is set to `hover`.</td>
|
|
351
|
+
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<td><code>hover-rewind</code></td>
|
|
354
|
+
<td>Number</td>
|
|
355
|
+
<td>0</td>
|
|
356
|
+
<td>The rate at which the video is being rewound once the element is no longer hovered, when autoplay option is set to `hover`. The rewind speed accelerates after 5 seconds of playback.</td>
|
|
357
|
+
</tr>
|
|
358
|
+
<tr>
|
|
359
|
+
<td><code>inview-margin</code></td>
|
|
360
|
+
<td>String</td>
|
|
361
|
+
<td>0px</td>
|
|
362
|
+
<td>Margin added to the viewport when determining whether the element is in view.</td>
|
|
363
|
+
</tr>
|
|
364
|
+
<tr>
|
|
365
|
+
<td><code>inview-queued</code></td>
|
|
366
|
+
<td>Number</td>
|
|
367
|
+
<td>0</td>
|
|
368
|
+
<td>Limits the number of simultaneously playing videos when multiple videos are in view. The value is a ratio (0–1) of videos that may play at once relative to all queued in-view videos.</td>
|
|
369
|
+
</tr>
|
|
370
|
+
<tr>
|
|
371
|
+
<td><code>parallax-target</code></td>
|
|
372
|
+
<td>CSS selector</td>
|
|
373
|
+
<td>false</td>
|
|
374
|
+
<td>Element dimension reference for the parallax duration. Defaults to the video element.</td>
|
|
375
|
+
</tr>
|
|
376
|
+
<tr>
|
|
377
|
+
<td><code>parallax-start</code></td>
|
|
378
|
+
<td>Length</td>
|
|
379
|
+
<td>0</td>
|
|
380
|
+
<td>Start offset. The value can be in vh, % and px. It supports basic mathematics operands + and -. The default value of `0` means that the target's top border and viewport's bottom border intersect.</td>
|
|
381
|
+
</tr>
|
|
382
|
+
<tr>
|
|
383
|
+
<td><code>parallax-end</code></td>
|
|
384
|
+
<td>Length</td>
|
|
385
|
+
<td>0</td>
|
|
386
|
+
<td>End offset. The value can be in vh, % and px. It supports basic mathematics operands + and -. The default value of `0` means that the target's bottom border and the viewport's top border intersect.</td>
|
|
387
|
+
</tr>
|
|
388
|
+
<tr>
|
|
389
|
+
<td><code>parallax-easing</code></td>
|
|
390
|
+
<td>Number</td>
|
|
391
|
+
<td>0</td>
|
|
392
|
+
<td>Animation easing during scrolling.</td>
|
|
393
|
+
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td><code>reduced-motion-time</code></td>
|
|
396
|
+
<td>Number</td>
|
|
397
|
+
<td>0</td>
|
|
398
|
+
<td>The time in seconds to seek to when autoplay is prevented by the `prefers-reduced-motion` media query. The video is paused at this position to display a still frame.</td>
|
|
199
399
|
</tr>
|
|
200
400
|
</tbody>
|
|
201
401
|
</table>
|
package/tests/visibility.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<h2>Hidden</h2>
|
|
18
18
|
|
|
19
|
-
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center"
|
|
19
|
+
<div class="uk-grid uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center">
|
|
20
20
|
<div>
|
|
21
21
|
<div class="uk-panel">
|
|
22
22
|
<div class="uk-alert uk-margin-remove uk-alert-success">✔ Small<br>(Phone Landscape)</div>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<h2>Visible</h2>
|
|
47
47
|
|
|
48
|
-
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center"
|
|
48
|
+
<div class="uk-grid uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center">
|
|
49
49
|
<div>
|
|
50
50
|
<div class="uk-panel">
|
|
51
51
|
<div class="uk-alert uk-margin-remove">Small<br>(Phone Landscape)</div>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
<h2>Toggle (Hover + Focus)</h2>
|
|
76
76
|
|
|
77
|
-
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center"
|
|
77
|
+
<div class="uk-grid uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center">
|
|
78
78
|
<div>
|
|
79
79
|
<div class="uk-panel uk-visible-toggle" tabindex="0">
|
|
80
80
|
<div class="uk-alert uk-margin-remove">Hidden Hover<br><br></div>
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
<h2>Touch</h2>
|
|
93
93
|
|
|
94
|
-
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center"
|
|
94
|
+
<div class="uk-grid uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center">
|
|
95
95
|
<div>
|
|
96
96
|
<div class="uk-panel">
|
|
97
97
|
<div class="uk-alert uk-margin-remove uk-alert-success">✔ Hidden Touch</div>
|
package/tests/width.html
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<h2>Child Widths</h2>
|
|
37
37
|
|
|
38
|
-
<div class="uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl"
|
|
38
|
+
<div class="uk-grid uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl">
|
|
39
39
|
<div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
40
40
|
<div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
41
41
|
<div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
<h2>Single Widths</h2>
|
|
48
48
|
|
|
49
|
-
<div class="uk-grid
|
|
49
|
+
<div class="uk-grid uk-grid-match">
|
|
50
50
|
<div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
51
51
|
<div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
52
52
|
<div class="uk-width-1-2 uk-width-1-3@s uk-width-1-4@m uk-width-1-5@l uk-width-1-6@xl"><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
<h2>Mixed</h2>
|
|
59
59
|
|
|
60
|
-
<div class="uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl"
|
|
60
|
+
<div class="uk-grid uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m uk-child-width-1-5@l uk-child-width-1-6@xl">
|
|
61
61
|
<div class="uk-width-expand"><div class="uk-panel">Expand</div></div>
|
|
62
62
|
<div class="uk-width-1-4@m"><div class="uk-panel">1-4-M</div></div>
|
|
63
63
|
<div><div class="uk-panel">1-2<br>1-3-S<br>1-4-M<br>1-5-L<br>1-6-XL</div></div>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
|
|
68
68
|
<h2>Expand</h2>
|
|
69
69
|
|
|
70
|
-
<div class="uk-grid-match uk-child-width-expand"
|
|
70
|
+
<div class="uk-grid uk-grid-match uk-child-width-expand">
|
|
71
71
|
<div><div class="uk-panel">Expand with some more text</div></div>
|
|
72
72
|
<div><div class="uk-panel uk-width-large">Panel Width Large</div></div>
|
|
73
73
|
<div><div class="uk-panel">Expand</div></div>
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
<div><div class="uk-panel"><img src="images/photo.jpg" width="1800" height="1200" alt=""></div></div>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
|
-
<div class="uk-grid-collapse uk-grid-match uk-child-width-expand uk-margin"
|
|
79
|
+
<div class="uk-grid uk-grid-collapse uk-grid-match uk-child-width-expand uk-margin">
|
|
80
80
|
<div class="uk-width-1-1"><div class="uk-panel">1-1</div></div>
|
|
81
81
|
<div><div class="uk-panel">Expand</div></div>
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<h2>Auto</h2>
|
|
85
85
|
|
|
86
|
-
<div class="uk-grid-match uk-child-width-auto"
|
|
86
|
+
<div class="uk-grid uk-grid-match uk-child-width-auto">
|
|
87
87
|
<div><div class="uk-panel">Auto with some more text</div></div>
|
|
88
88
|
<div><div class="uk-panel">Auto</div></div>
|
|
89
89
|
<div><div class="uk-panel">Auto</div></div>
|
|
@@ -92,34 +92,34 @@
|
|
|
92
92
|
<div><div class="uk-panel">Auto</div></div>
|
|
93
93
|
</div>
|
|
94
94
|
|
|
95
|
-
<div class="uk-grid-match uk-child-width-auto uk-flex-between"
|
|
95
|
+
<div class="uk-grid uk-grid-match uk-child-width-auto uk-flex-between">
|
|
96
96
|
<div><div class="uk-panel">Auto with some more text and space between the two items</div></div>
|
|
97
97
|
<div><div class="uk-panel">Auto with some more text</div></div>
|
|
98
98
|
</div>
|
|
99
99
|
|
|
100
100
|
<h2>Pixel</h2>
|
|
101
101
|
|
|
102
|
-
<ul class="uk-grid-small uk-grid-match uk-child-width-expand"
|
|
102
|
+
<ul class="uk-grid uk-grid-small uk-grid-match uk-child-width-expand">
|
|
103
103
|
<li class="uk-width-small"><div class="uk-panel">Small</div></li>
|
|
104
104
|
<li><div class="uk-panel">Expand with some more text</div></li>
|
|
105
105
|
</ul>
|
|
106
106
|
|
|
107
|
-
<ul class="uk-grid-small uk-grid-match uk-child-width-expand"
|
|
107
|
+
<ul class="uk-grid uk-grid-small uk-grid-match uk-child-width-expand">
|
|
108
108
|
<li class="uk-width-medium@s"><div class="uk-panel">Medium</div></li>
|
|
109
109
|
<li><div class="uk-panel">Expand with some more text</div></li>
|
|
110
110
|
</ul>
|
|
111
111
|
|
|
112
|
-
<ul class="uk-grid-small uk-grid-match uk-child-width-expand"
|
|
112
|
+
<ul class="uk-grid uk-grid-small uk-grid-match uk-child-width-expand">
|
|
113
113
|
<li class="uk-width-large@s"><div class="uk-panel">Large</div></li>
|
|
114
114
|
<li><div class="uk-panel">Expand with some more text</div></li>
|
|
115
115
|
</ul>
|
|
116
116
|
|
|
117
|
-
<ul class="uk-grid-small uk-grid-match uk-child-width-expand"
|
|
117
|
+
<ul class="uk-grid uk-grid-small uk-grid-match uk-child-width-expand">
|
|
118
118
|
<li class="uk-width-xlarge@m"><div class="uk-panel">X-Large</div></li>
|
|
119
119
|
<li><div class="uk-panel">Expand with some more text</div></li>
|
|
120
120
|
</ul>
|
|
121
121
|
|
|
122
|
-
<ul class="uk-grid-small uk-grid-match uk-child-width-expand"
|
|
122
|
+
<ul class="uk-grid uk-grid-small uk-grid-match uk-child-width-expand">
|
|
123
123
|
<li class="uk-width-2xlarge@l"><div class="uk-panel">2X-Large</div></li>
|
|
124
124
|
<li><div class="uk-panel">Expand with some more text</div></li>
|
|
125
125
|
</ul>
|