uikit 3.25.20-dev.e4f47fc → 3.25.20
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 +2 -33
- package/build/prefix.js +1 -1
- package/build/publishDev.js +1 -1
- package/build/scope.js +1 -1
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +917 -1045
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +917 -1045
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +936 -1064
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +936 -1064
- 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 +132 -133
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +133 -134
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +12 -8
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +12 -8
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +25 -41
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +12 -8
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +102 -71
- 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 +262 -752
- 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 +374 -627
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +3 -2
- package/src/js/api/observables.js +4 -2
- package/src/js/api/options.js +3 -6
- package/src/js/api/props.js +4 -1
- package/src/js/api/state.js +8 -7
- package/src/js/components/index.js +0 -1
- package/src/js/components/internal/lightbox-animations.js +26 -7
- package/src/js/components/internal/slideshow-animations.js +62 -15
- package/src/js/components/lightbox-panel.js +96 -121
- package/src/js/components/lightbox.js +8 -5
- package/src/js/components/tooltip.js +2 -4
- package/src/js/core/accordion.js +29 -78
- package/src/js/core/drop.js +4 -5
- package/src/js/core/dropnav.js +3 -3
- package/src/js/core/grid.js +19 -5
- package/src/js/core/height-match.js +2 -1
- package/src/js/core/margin.js +0 -3
- package/src/js/core/overflow-fade.js +5 -5
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/switcher.js +44 -24
- package/src/js/core/video.js +15 -172
- package/src/js/mixin/internal/slideshow-animations.js +13 -5
- package/src/js/mixin/internal/slideshow-transitioner.js +2 -2
- package/src/js/mixin/modal.js +3 -4
- package/src/js/mixin/parallax.js +4 -1
- package/src/js/mixin/position.js +1 -1
- package/src/js/mixin/slider-nav.js +1 -1
- package/src/js/mixin/slider-parallax.js +38 -9
- package/src/js/mixin/togglable.js +14 -13
- package/src/js/util/attr.js +7 -7
- package/src/js/util/class.js +1 -1
- package/src/js/util/dom.js +4 -3
- package/src/js/util/lang.js +1 -1
- package/src/js/util/player.js +4 -4
- package/src/js/util/style.js +15 -10
- package/src/js/util/viewport.js +25 -22
- package/src/less/components/_import.less +1 -6
- package/src/less/components/base.less +1 -1
- package/src/less/components/button.less +1 -1
- package/src/less/components/form.less +5 -5
- package/src/less/components/grid.less +65 -58
- package/src/less/components/margin.less +124 -155
- package/src/less/components/nav.less +1 -1
- package/src/less/components/padding.less +9 -9
- package/src/less/components/text.less +0 -6
- package/src/less/components/utility.less +163 -0
- package/src/less/theme/_import.less +1 -5
- package/src/less/theme/utility.less +32 -0
- package/src/scss/components/_import.scss +1 -6
- package/src/scss/components/base.scss +1 -1
- package/src/scss/components/button.scss +1 -1
- package/src/scss/components/form.scss +5 -5
- package/src/scss/components/grid.scss +64 -57
- package/src/scss/components/margin.scss +124 -155
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/padding.scss +9 -9
- package/src/scss/components/text.scss +0 -6
- package/src/scss/components/utility.scss +129 -0
- package/src/scss/mixins-theme.scss +33 -42
- package/src/scss/mixins.scss +30 -39
- package/src/scss/variables-theme.scss +14 -14
- package/src/scss/variables.scss +14 -14
- package/tests/accordion.html +10 -77
- 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 +3 -3
- 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 +6 -6
- 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/dropdown.html +1 -1
- package/tests/dropnav.html +18 -18
- package/tests/filter.html +3 -3
- package/tests/form.html +14 -14
- package/tests/grid.html +47 -41
- 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 +14 -14
- package/tests/link.html +1 -1
- package/tests/list.html +4 -4
- package/tests/margin.html +7 -7
- package/tests/marker.html +3 -3
- package/tests/modal.html +4 -4
- 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 +4 -34
- 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 +2 -3
- 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 +116 -16
- package/tests/video.html +27 -227
- package/tests/visibility.html +4 -4
- package/tests/width.html +12 -12
- package/dist/js/components/marquee.js +0 -179
- package/dist/js/components/marquee.min.js +0 -1
- package/src/js/components/marquee.js +0 -123
- package/src/js/mixin/connect.js +0 -55
- package/src/js/mixin/scroll-driven.js +0 -57
- package/src/less/components/dropcap.less +0 -71
- package/src/less/components/floating-shadow.less +0 -66
- package/src/less/components/logo.less +0 -94
- package/src/less/components/marquee.less +0 -133
- package/src/less/theme/dropcap.less +0 -29
- package/src/less/theme/floating-shadow.less +0 -20
- package/src/less/theme/logo.less +0 -29
- package/src/less/theme/marquee.less +0 -14
- package/src/scss/components/dropcap.scss +0 -63
- package/src/scss/components/floating-shadow.scss +0 -63
- package/src/scss/components/logo.scss +0 -75
- package/src/scss/components/marquee.scss +0 -136
- package/tests/dropcap.html +0 -26
- package/tests/floating-shadow.html +0 -44
- package/tests/logo.html +0 -84
- package/tests/marquee.html +0 -617
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>Inline Video</h2>
|
|
59
59
|
|
|
60
60
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
61
61
|
<div>
|
|
62
62
|
|
|
63
|
-
<h3>
|
|
63
|
+
<h3>Autoplay</h3>
|
|
64
64
|
<!--
|
|
65
65
|
# Native Autoplay
|
|
66
66
|
Chrome: `Out of view` + `Hidden`: Stops playing.
|
|
@@ -69,76 +69,62 @@
|
|
|
69
69
|
-->
|
|
70
70
|
|
|
71
71
|
<!-- `Out of view`: continous playing. `Hidden`: stops playing -->
|
|
72
|
-
<video src="https://yootheme.com/
|
|
73
|
-
|
|
72
|
+
<video src="https://yootheme.com/assets/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video></video>
|
|
74
73
|
</div>
|
|
75
74
|
<div>
|
|
76
75
|
|
|
77
|
-
<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>
|
|
76
|
+
<h3>Autoplay Inview</h3>
|
|
84
77
|
|
|
78
|
+
<!-- `Out of view` + `Hidden`: stops playing -->
|
|
79
|
+
<video src="https://yootheme.com/assets/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview"></video>
|
|
85
80
|
</div>
|
|
86
81
|
<div>
|
|
87
82
|
|
|
88
|
-
<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>
|
|
83
|
+
<h3>Autoplay Hover</h3>
|
|
91
84
|
|
|
85
|
+
<video src="https://yootheme.com/assets/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: hover"></video>
|
|
92
86
|
</div>
|
|
93
87
|
</div>
|
|
94
88
|
|
|
95
|
-
<h2>
|
|
89
|
+
<h2>Inline YouTube</h2>
|
|
96
90
|
|
|
97
91
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
98
92
|
<div>
|
|
99
93
|
|
|
100
|
-
<h3>
|
|
94
|
+
<h3>Autoplay</h3>
|
|
95
|
+
<!--
|
|
96
|
+
# Native Autoplay `autoplay=1`
|
|
97
|
+
All browsers: `Out of view` + `Hidden`: Doesn't stop when hidden.
|
|
98
|
+
-->
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
<video src="https://yootheme.com/site/images/media/yootheme-pro.mp4" width="1920" height="1080" playsinline loop muted uk-video="autoplay: inview"></video>
|
|
100
|
+
<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>
|
|
104
101
|
|
|
105
102
|
</div>
|
|
106
103
|
<div>
|
|
107
104
|
|
|
108
|
-
<h3>
|
|
105
|
+
<h3>Autoplay Inview</h3>
|
|
109
106
|
|
|
110
107
|
<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>
|
|
111
108
|
|
|
112
109
|
</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>
|
|
120
110
|
</div>
|
|
121
111
|
|
|
122
|
-
<h2>
|
|
112
|
+
<h2>Inline Vimeo</h2>
|
|
123
113
|
|
|
124
114
|
<div class="uk-grid uk-child-width-1-3@s">
|
|
125
115
|
<div>
|
|
126
116
|
|
|
127
|
-
<h3>Autoplay
|
|
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>
|
|
130
|
-
</div>
|
|
131
|
-
<div>
|
|
117
|
+
<h3>Autoplay</h3>
|
|
132
118
|
|
|
133
|
-
<
|
|
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>
|
|
134
120
|
|
|
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
121
|
</div>
|
|
137
122
|
<div>
|
|
138
123
|
|
|
139
|
-
<h3>Autoplay
|
|
124
|
+
<h3>Autoplay Inview</h3>
|
|
125
|
+
|
|
126
|
+
<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>
|
|
140
127
|
|
|
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>
|
|
142
128
|
</div>
|
|
143
129
|
</div>
|
|
144
130
|
|
|
@@ -149,7 +135,7 @@
|
|
|
149
135
|
|
|
150
136
|
<h3>Video (Poster)</h3>
|
|
151
137
|
|
|
152
|
-
<video src="https://yootheme.com/
|
|
138
|
+
<video src="https://yootheme.com/assets/images/media/yootheme-pro.mp4" poster="images/photo.jpg" width="1920" height="1080" controls preload="none" uk-video="autoplay: false"></video>
|
|
153
139
|
|
|
154
140
|
|
|
155
141
|
</div>
|
|
@@ -158,7 +144,7 @@
|
|
|
158
144
|
<h3>Video</h3>
|
|
159
145
|
|
|
160
146
|
<div class="uk-inline uk-light">
|
|
161
|
-
<video src="https://yootheme.com/
|
|
147
|
+
<video src="https://yootheme.com/assets/images/media/yootheme-pro.mp4" width="1920" height="1080" controls preload="none" hidden uk-video></video>
|
|
162
148
|
<a href uk-toggle="target: ! > *">
|
|
163
149
|
<img src="images/photo.jpg" width="1800" height="1200" alt="">
|
|
164
150
|
<span class="uk-position-center uk-icon-overlay" uk-icon="icon: youtube; ratio: 3"></span>
|
|
@@ -181,144 +167,6 @@
|
|
|
181
167
|
</div>
|
|
182
168
|
</div>
|
|
183
169
|
|
|
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
|
-
|
|
322
170
|
<h2>JavaScript Options</h2>
|
|
323
171
|
|
|
324
172
|
<table class="uk-table uk-table-striped">
|
|
@@ -335,67 +183,19 @@
|
|
|
335
183
|
<td><code>autoplay</code></td>
|
|
336
184
|
<td>Boolean, String</td>
|
|
337
185
|
<td>true</td>
|
|
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.
|
|
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: Hover does not work with iframes.</td>
|
|
339
187
|
</tr>
|
|
340
188
|
<tr>
|
|
341
189
|
<td><code>restart</code></td>
|
|
342
190
|
<td>Boolean</td>
|
|
343
191
|
<td>false</td>
|
|
344
|
-
<td>
|
|
192
|
+
<td>Video will seek to the beginning whenever video element's autoplay option pauses the video.</td>
|
|
345
193
|
</tr>
|
|
346
194
|
<tr>
|
|
347
195
|
<td><code>hover-target</code></td>
|
|
348
196
|
<td>CSS Selector</td>
|
|
349
197
|
<td>self</td>
|
|
350
|
-
<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>
|
|
198
|
+
<td>The element that functions as hover toggle when autoplay option is set to `hover`.</td>
|
|
399
199
|
</tr>
|
|
400
200
|
</tbody>
|
|
401
201
|
</table>
|
package/tests/visibility.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<h2>Hidden</h2>
|
|
18
18
|
|
|
19
|
-
<div class="uk-
|
|
19
|
+
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center" uk-grid>
|
|
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-
|
|
48
|
+
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center" uk-grid>
|
|
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-
|
|
77
|
+
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center" uk-grid>
|
|
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-
|
|
94
|
+
<div class="uk-child-width-1-2@s uk-child-width-1-4@m uk-text-center" uk-grid>
|
|
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
|
|
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" uk-grid>
|
|
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 uk-grid
|
|
49
|
+
<div class="uk-grid-match" uk-grid>
|
|
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
|
|
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" uk-grid>
|
|
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
|
|
70
|
+
<div class="uk-grid-match uk-child-width-expand" uk-grid>
|
|
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
|
|
79
|
+
<div class="uk-grid-collapse uk-grid-match uk-child-width-expand uk-margin" uk-grid>
|
|
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
|
|
86
|
+
<div class="uk-grid-match uk-child-width-auto" uk-grid>
|
|
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
|
|
95
|
+
<div class="uk-grid-match uk-child-width-auto uk-flex-between" uk-grid>
|
|
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
|
|
102
|
+
<ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
|
|
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
|
|
107
|
+
<ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
|
|
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
|
|
112
|
+
<ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
|
|
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
|
|
117
|
+
<ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
|
|
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
|
|
122
|
+
<ul class="uk-grid-small uk-grid-match uk-child-width-expand" uk-grid>
|
|
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>
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.25.20-dev.e4f47fc | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
|
-
|
|
3
|
-
(function (global, factory) {
|
|
4
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
5
|
-
typeof define === 'function' && define.amd ? define('uikitmarquee', ['uikit-util'], factory) :
|
|
6
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.UIkitMarquee = factory(global.UIkit.util));
|
|
7
|
-
})(this, (function (uikitUtil) { 'use strict';
|
|
8
|
-
|
|
9
|
-
function callUpdate(instance, e = "update") {
|
|
10
|
-
if (!instance._connected) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
if (!instance._updates.length) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
if (!instance._updateCount) {
|
|
17
|
-
instance._updateCount = 0;
|
|
18
|
-
requestAnimationFrame(() => instance._updateCount = 0);
|
|
19
|
-
}
|
|
20
|
-
if (!instance._queued) {
|
|
21
|
-
instance._queued = /* @__PURE__ */ new Set();
|
|
22
|
-
uikitUtil.fastdom.read(() => {
|
|
23
|
-
if (instance._connected) {
|
|
24
|
-
runUpdates(instance, instance._queued);
|
|
25
|
-
}
|
|
26
|
-
instance._queued = null;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
if (instance._updateCount++ < 20) {
|
|
30
|
-
instance._queued.add(e.type || e);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function runUpdates(instance, types) {
|
|
34
|
-
for (const { read, write, events = [] } of instance._updates) {
|
|
35
|
-
if (!types.has("update") && !events.some((type) => types.has(type))) {
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
let result;
|
|
39
|
-
if (read) {
|
|
40
|
-
result = read.call(instance, instance._data, types);
|
|
41
|
-
if (result && uikitUtil.isPlainObject(result)) {
|
|
42
|
-
uikitUtil.assign(instance._data, result);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (write && result !== false) {
|
|
46
|
-
uikitUtil.fastdom.write(() => {
|
|
47
|
-
if (instance._connected) {
|
|
48
|
-
write.call(instance, instance._data, types);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function resize(options) {
|
|
56
|
-
return observe(uikitUtil.observeResize, options, "resize");
|
|
57
|
-
}
|
|
58
|
-
function intersection(options) {
|
|
59
|
-
return observe(uikitUtil.observeIntersection, options);
|
|
60
|
-
}
|
|
61
|
-
function observe(observe2, options, emit) {
|
|
62
|
-
return {
|
|
63
|
-
observe: observe2,
|
|
64
|
-
handler() {
|
|
65
|
-
callUpdate(this, emit);
|
|
66
|
-
},
|
|
67
|
-
...options
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
var Class = {
|
|
72
|
-
connected() {
|
|
73
|
-
this._cmpCls = uikitUtil.hasClass(this.$el, this.$options.id);
|
|
74
|
-
uikitUtil.addClass(this.$el, this.$options.id);
|
|
75
|
-
},
|
|
76
|
-
disconnected() {
|
|
77
|
-
if (!this._cmpCls) {
|
|
78
|
-
uikitUtil.removeClass(this.$el, this.$options.id);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const hasAnimationApi = uikitUtil.inBrowser && window.Animation;
|
|
84
|
-
var Component = {
|
|
85
|
-
mixins: [Class],
|
|
86
|
-
props: {
|
|
87
|
-
velocity: Number,
|
|
88
|
-
start: Number,
|
|
89
|
-
reverse: Boolean,
|
|
90
|
-
pause: Boolean,
|
|
91
|
-
pauseVelocity: Number,
|
|
92
|
-
fadeSize: null
|
|
93
|
-
},
|
|
94
|
-
data: {
|
|
95
|
-
velocity: 25,
|
|
96
|
-
start: 0,
|
|
97
|
-
reverse: false,
|
|
98
|
-
pause: false,
|
|
99
|
-
pauseVelocity: 10,
|
|
100
|
-
selList: ".uk-marquee-items",
|
|
101
|
-
fadeSize: 0
|
|
102
|
-
},
|
|
103
|
-
computed: {
|
|
104
|
-
list: ({ selList }, $el) => uikitUtil.$(selList, $el),
|
|
105
|
-
items() {
|
|
106
|
-
return uikitUtil.children(this.list);
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
observe: [
|
|
110
|
-
resize({
|
|
111
|
-
target: ({ $el, items }) => [$el, ...items]
|
|
112
|
-
}),
|
|
113
|
-
intersection({
|
|
114
|
-
handler(entries) {
|
|
115
|
-
for (const entry of entries) {
|
|
116
|
-
entry.target.inert = !entry.isIntersecting;
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
target: ({ items }) => items,
|
|
120
|
-
args: { intersecting: false },
|
|
121
|
-
options: ({ $el }) => ({ root: $el })
|
|
122
|
-
})
|
|
123
|
-
],
|
|
124
|
-
events: {
|
|
125
|
-
name: [uikitUtil.pointerEnter, uikitUtil.pointerLeave],
|
|
126
|
-
el: ({ $el }) => $el,
|
|
127
|
-
self: true,
|
|
128
|
-
filter: ({ pause }) => hasAnimationApi && pause,
|
|
129
|
-
handler(e) {
|
|
130
|
-
for (const el of this.items) {
|
|
131
|
-
for (const animation of el.getAnimations()) {
|
|
132
|
-
animation.playbackRate = e.type === uikitUtil.pointerEnter ? this.pauseVelocity / this.velocity : 1;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
update: {
|
|
138
|
-
write() {
|
|
139
|
-
const prefix = this.$options.id;
|
|
140
|
-
const items = this.items;
|
|
141
|
-
const vertical = uikitUtil.hasClass(this.$el, `${prefix}-vertical`);
|
|
142
|
-
uikitUtil.css(items, "offset", "none");
|
|
143
|
-
const dir = vertical ? ["top", "bottom"] : ["left", "right"];
|
|
144
|
-
if (!vertical && uikitUtil.isRtl) {
|
|
145
|
-
dir.reverse();
|
|
146
|
-
}
|
|
147
|
-
const listStart = uikitUtil.dimensions(this.list)[dir[0]];
|
|
148
|
-
const listEnd = Math[!vertical && uikitUtil.isRtl ? "min" : "max"](
|
|
149
|
-
...items.map((el) => uikitUtil.dimensions(el)[dir[1]])
|
|
150
|
-
);
|
|
151
|
-
for (const el of items) {
|
|
152
|
-
const elEnd = uikitUtil.dimensions(el)[dir[1]];
|
|
153
|
-
const line1 = listEnd - elEnd;
|
|
154
|
-
const line2 = elEnd - listStart;
|
|
155
|
-
const path = vertical ? `"M0 0 v${line1}M0 ${-line2} v${line2}"` : `"M0 0 h${line1}M${-line2} 0 h${line2}"`;
|
|
156
|
-
uikitUtil.css(el, `--${prefix}-path`, path);
|
|
157
|
-
}
|
|
158
|
-
uikitUtil.css(this.$el, {
|
|
159
|
-
[`--${prefix}-duration`]: `${Math.abs(listStart - listEnd) / this.velocity}s`,
|
|
160
|
-
[`--${prefix}-start`]: this.start,
|
|
161
|
-
[`--${prefix}-direction`]: this.reverse ? "reverse" : "normal",
|
|
162
|
-
"--uk-overflow-fade-size": this.fadeSize ? `${uikitUtil.toPx(this.fadeSize, vertical ? "height" : "width", this.$el, true)}px` : ""
|
|
163
|
-
});
|
|
164
|
-
uikitUtil.toggleClass(this.$el, `${prefix}-fade`, this.fadeSize);
|
|
165
|
-
uikitUtil.css(items, "offset", "");
|
|
166
|
-
},
|
|
167
|
-
events: ["resize"]
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
var name = 'marquee';
|
|
172
|
-
|
|
173
|
-
if (typeof window !== "undefined" && window.UIkit) {
|
|
174
|
-
window.UIkit.component(name, Component);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return Component;
|
|
178
|
-
|
|
179
|
-
}));
|