uikit 3.13.10 → 3.13.11-dev.eb080f280
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 +29 -1
- package/dist/css/uikit-core-rtl.css +46 -8
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +46 -8
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +46 -6
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +46 -6
- 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 +7 -3
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +7 -3
- 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 +18 -11
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +18 -11
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +18 -11
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +2 -2
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +62 -30
- 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 +349 -253
- 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 +392 -259
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/sortable.js +2 -3
- package/src/js/components/tooltip.js +38 -3
- package/src/js/core/drop.js +20 -10
- package/src/js/core/navbar.js +18 -6
- package/src/js/core/scrollspy-nav.js +4 -9
- package/src/js/core/sticky.js +55 -21
- package/src/js/mixin/media.js +12 -9
- package/src/js/mixin/modal.js +6 -2
- package/src/js/mixin/parallax.js +5 -1
- package/src/js/mixin/position.js +24 -24
- package/src/js/uikit-core.js +0 -4
- package/src/js/util/lang.js +0 -4
- package/src/js/util/position.js +180 -125
- package/src/js/util/viewport.js +42 -22
- package/src/less/components/drop.less +0 -1
- package/src/less/components/dropdown.less +11 -1
- package/src/less/components/icon.less +3 -0
- package/src/less/components/nav.less +22 -0
- package/src/less/components/navbar.less +26 -2
- package/src/less/components/search.less +2 -0
- package/src/less/components/sticky.less +8 -3
- package/src/less/theme/dropdown.less +4 -0
- package/src/less/theme/nav.less +6 -0
- package/src/less/theme/navbar.less +4 -0
- package/src/less/theme/search.less +6 -0
- package/src/scss/components/drop.scss +0 -1
- package/src/scss/components/dropdown.scss +11 -1
- package/src/scss/components/icon.scss +3 -0
- package/src/scss/components/nav.scss +22 -0
- package/src/scss/components/navbar.scss +26 -2
- package/src/scss/components/search.scss +2 -0
- package/src/scss/components/sticky.scss +8 -3
- package/src/scss/mixins-theme.scss +5 -0
- package/src/scss/mixins.scss +5 -0
- package/src/scss/theme/dropdown.scss +4 -0
- package/src/scss/theme/nav.scss +6 -0
- package/src/scss/theme/navbar.scss +4 -0
- package/src/scss/theme/search.scss +6 -0
- package/src/scss/variables-theme.scss +5 -1
- package/src/scss/variables.scss +5 -1
- package/tests/animation.html +216 -214
- package/tests/dropdown.html +16 -2
- package/tests/nav.html +27 -0
- package/tests/navbar.html +55 -4
- package/tests/parallax.html +4 -4
- package/tests/position.html +38 -39
- package/tests/sticky-navbar.html +6 -6
- package/tests/sticky-parallax.html +23 -7
- package/tests/sticky.html +300 -49
- package/src/js/core/core.js +0 -25
package/tests/navbar.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<h1>Navbar</h1>
|
|
27
27
|
|
|
28
28
|
<div uk-grid>
|
|
29
|
-
<div class="uk-width-2
|
|
29
|
+
<div class="uk-width-1-2@m">
|
|
30
30
|
|
|
31
31
|
<nav class="uk-navbar-container uk-margin" uk-navbar>
|
|
32
32
|
<div class="uk-navbar-left">
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<h2>Transparent</h2>
|
|
104
104
|
|
|
105
105
|
<div class="uk-margin uk-position-relative uk-light">
|
|
106
|
-
<canvas class="uk-background-cover" style="background-image: url('images/dark.jpg')" width="1000" height="
|
|
106
|
+
<canvas class="uk-background-cover" style="background-image: url('images/dark.jpg')" width="1000" height="300"></canvas>
|
|
107
107
|
<div class="uk-position-top">
|
|
108
108
|
<nav class="uk-navbar-container uk-navbar-transparent" uk-navbar>
|
|
109
109
|
<div class="uk-navbar-left">
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div class="uk-margin uk-position-relative uk-dark">
|
|
147
|
-
<canvas class="uk-background-cover" style="background-image: url('images/light.jpg')" width="1000" height="
|
|
147
|
+
<canvas class="uk-background-cover" style="background-image: url('images/light.jpg')" width="1000" height="300"></canvas>
|
|
148
148
|
<div class="uk-position-top">
|
|
149
149
|
<nav class="uk-navbar-container uk-navbar-transparent" uk-navbar>
|
|
150
150
|
<div class="uk-navbar-left">
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
</div>
|
|
186
186
|
|
|
187
187
|
</div>
|
|
188
|
-
<div class="uk-width-1-
|
|
188
|
+
<div class="uk-width-1-4@m">
|
|
189
189
|
|
|
190
190
|
<div class="uk-navbar-dropdown test">
|
|
191
191
|
|
|
@@ -220,6 +220,20 @@
|
|
|
220
220
|
</div>
|
|
221
221
|
|
|
222
222
|
</div>
|
|
223
|
+
<div class="uk-width-1-4@m">
|
|
224
|
+
|
|
225
|
+
<div class="uk-navbar-dropdown test">
|
|
226
|
+
|
|
227
|
+
<ul class="uk-nav uk-navbar-dropdown-nav">
|
|
228
|
+
<li class="uk-active"><a href="#"><div>Active<div class="uk-nav-subtitle">Subtitle lorem ipsum dolor sit amet, consectetur adipiscing.</div></div></a></li>
|
|
229
|
+
<li><a href="#"><div>Item<div class="uk-nav-subtitle">Subtitle lorem ipsum dolor sit amet, consectetur adipiscing.</div></div></a></li>
|
|
230
|
+
<li><a href="#"><div>Item<div class="uk-nav-subtitle">Subtitle lorem ipsum dolor sit amet, consectetur adipiscing.</div></div></a></li>
|
|
231
|
+
<li><a href="#"><div>Item<div class="uk-nav-subtitle">Subtitle lorem ipsum dolor sit amet, consectetur adipiscing.</div></div></a></li>
|
|
232
|
+
</ul>
|
|
233
|
+
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
</div>
|
|
223
237
|
</div>
|
|
224
238
|
|
|
225
239
|
<h2>Dropdown</h2>
|
|
@@ -1707,6 +1721,43 @@
|
|
|
1707
1721
|
</div>
|
|
1708
1722
|
</nav>
|
|
1709
1723
|
|
|
1724
|
+
<h2>Justify</h2>
|
|
1725
|
+
|
|
1726
|
+
<nav class="uk-navbar-container uk-margin">
|
|
1727
|
+
<div class="uk-navbar-justify" uk-navbar>
|
|
1728
|
+
<div class="uk-navbar-left">
|
|
1729
|
+
|
|
1730
|
+
<a class="uk-navbar-item uk-logo" href="#">Logo</a>
|
|
1731
|
+
|
|
1732
|
+
<ul class="uk-navbar-nav">
|
|
1733
|
+
<li class="uk-active"><a href="#">Active</a></li>
|
|
1734
|
+
<li><a href="#">Parent</a></li>
|
|
1735
|
+
<li><a href="#">Item</a></li>
|
|
1736
|
+
<li><a href="#">Item</a></li>
|
|
1737
|
+
</ul>
|
|
1738
|
+
|
|
1739
|
+
</div>
|
|
1740
|
+
<div class="uk-navbar-right">
|
|
1741
|
+
|
|
1742
|
+
<ul class="uk-navbar-nav">
|
|
1743
|
+
<li><a href="#">Item</a></li>
|
|
1744
|
+
</ul>
|
|
1745
|
+
|
|
1746
|
+
<div class="uk-navbar-item">
|
|
1747
|
+
<ul class="uk-grid-small" uk-grid>
|
|
1748
|
+
<li>
|
|
1749
|
+
<a class="uk-icon-button" href="#" uk-icon="icon: trash"></a>
|
|
1750
|
+
</li>
|
|
1751
|
+
<li>
|
|
1752
|
+
<a class="uk-icon-button" href="#" uk-icon="icon: trash"></a>
|
|
1753
|
+
</li>
|
|
1754
|
+
</ul>
|
|
1755
|
+
</div>
|
|
1756
|
+
|
|
1757
|
+
</div>
|
|
1758
|
+
</div>
|
|
1759
|
+
</nav>
|
|
1760
|
+
|
|
1710
1761
|
<h2>Layouts</h2>
|
|
1711
1762
|
|
|
1712
1763
|
</div>
|
package/tests/parallax.html
CHANGED
|
@@ -168,15 +168,15 @@
|
|
|
168
168
|
</tr>
|
|
169
169
|
<tr>
|
|
170
170
|
<td><code>start</code></td>
|
|
171
|
-
<td>
|
|
171
|
+
<td>Length</td>
|
|
172
172
|
<td>0</td>
|
|
173
|
-
<td>Start offset. The value can be in vh
|
|
173
|
+
<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>
|
|
174
174
|
</tr>
|
|
175
175
|
<tr>
|
|
176
176
|
<td><code>end</code></td>
|
|
177
|
-
<td>
|
|
177
|
+
<td>Length</td>
|
|
178
178
|
<td>0</td>
|
|
179
|
-
<td>End offset. The value can be in vh
|
|
179
|
+
<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>
|
|
180
180
|
</tr>
|
|
181
181
|
<tr>
|
|
182
182
|
<td><code>media</code></td>
|
package/tests/position.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<style>
|
|
10
10
|
|
|
11
11
|
/* JavaScript */
|
|
12
|
-
#js-
|
|
12
|
+
#js-viewport {
|
|
13
13
|
height: 300px;
|
|
14
14
|
outline: 1px solid rgba(0,0,0,0.1);
|
|
15
15
|
position: relative;
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
|
|
27
27
|
#js-element {
|
|
28
28
|
position: absolute;
|
|
29
|
-
display: none;
|
|
30
29
|
width: 75px;
|
|
31
30
|
height: 75px;
|
|
32
31
|
background: rgba(0,0,0,0.1);
|
|
@@ -238,13 +237,13 @@
|
|
|
238
237
|
|
|
239
238
|
<h2>JavaScript</h2>
|
|
240
239
|
|
|
241
|
-
<div id="js-
|
|
240
|
+
<div id="js-viewport" class="uk-margin">
|
|
242
241
|
<div id="js-target" class="uk-flex uk-flex-center uk-flex-middle" draggable="true">Drag me!</div>
|
|
243
242
|
</div>
|
|
244
243
|
|
|
245
244
|
<div id="js-element"></div>
|
|
246
245
|
|
|
247
|
-
<div class="uk-grid uk-child-width-auto uk-form-stacked">
|
|
246
|
+
<div class="uk-grid uk-child-width-auto uk-form-stacked" style="margin-bottom: 100vh">
|
|
248
247
|
<div>
|
|
249
248
|
|
|
250
249
|
<div class="uk-margin">
|
|
@@ -327,27 +326,26 @@
|
|
|
327
326
|
|
|
328
327
|
<script>
|
|
329
328
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
boundary = $('#js-boundary'),
|
|
337
|
-
target = $('#js-target'),
|
|
338
|
-
offsetX,
|
|
339
|
-
offsetY;
|
|
329
|
+
const {$, $$, css, getEventPos, on, offset, positionAt} = UIkit.util;
|
|
330
|
+
let viewport = $('#js-viewport');
|
|
331
|
+
let element = $('#js-element');
|
|
332
|
+
let target = $('#js-target');
|
|
333
|
+
let offsetX;
|
|
334
|
+
let offsetY;
|
|
340
335
|
|
|
341
336
|
function position() {
|
|
342
|
-
|
|
337
|
+
positionAt(
|
|
343
338
|
element,
|
|
344
339
|
target,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
340
|
+
{
|
|
341
|
+
viewport,
|
|
342
|
+
attach:{
|
|
343
|
+
element: [$('#js-element_x').value, $('#js-element_y').value],
|
|
344
|
+
target: [$('#js-target_x').value, $('#js-target_y').value]
|
|
345
|
+
},
|
|
346
|
+
offset: [$('#js-offset_x').value, $('#js-offset_y').value],
|
|
347
|
+
flip: [$('#js-flip_x').value, $('#js-flip_y').value]
|
|
348
|
+
}
|
|
351
349
|
);
|
|
352
350
|
}
|
|
353
351
|
|
|
@@ -359,33 +357,34 @@
|
|
|
359
357
|
|
|
360
358
|
});
|
|
361
359
|
|
|
360
|
+
let lastPos;
|
|
362
361
|
on(window, 'dragover', function (e) {
|
|
363
362
|
|
|
364
|
-
e
|
|
365
|
-
|
|
366
|
-
if (!ticking) {
|
|
367
|
-
requestAnimationFrame(function () {
|
|
363
|
+
const pos = getEventPos(e);
|
|
368
364
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
'left top',
|
|
374
|
-
(e.pageX - offset(boundary).left - offsetX) + ' ' + (e.pageY - offset(boundary).top - offsetY)
|
|
375
|
-
);
|
|
365
|
+
if (lastPos?.x === pos.x && lastPos?.y === pos.y) {
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
lastPos = pos;
|
|
376
369
|
|
|
377
|
-
|
|
370
|
+
e.preventDefault();
|
|
378
371
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
372
|
+
// positions target at mouse cursor
|
|
373
|
+
positionAt(
|
|
374
|
+
target,
|
|
375
|
+
viewport,
|
|
376
|
+
{
|
|
377
|
+
offset: [e.pageX - offset(viewport).left - offsetX, e.pageY - offset(viewport).top - offsetY]
|
|
378
|
+
}
|
|
379
|
+
);
|
|
383
380
|
|
|
381
|
+
// positions element at target
|
|
382
|
+
position();
|
|
384
383
|
});
|
|
385
384
|
|
|
386
|
-
|
|
385
|
+
on($$('select,input'), 'change', position);
|
|
386
|
+
on(window, 'scroll', position);
|
|
387
387
|
|
|
388
|
-
util.css(element, 'display', 'block');
|
|
389
388
|
position();
|
|
390
389
|
|
|
391
390
|
</script>
|
package/tests/sticky-navbar.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<div class="tm-header">
|
|
20
|
-
<div uk-sticky="sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky
|
|
20
|
+
<div uk-sticky="end: #sticky-dropdown; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky">
|
|
21
21
|
<nav class="uk-navbar-container">
|
|
22
22
|
<div class="uk-container">
|
|
23
23
|
<div uk-navbar>
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
98
|
<div class="tm-header">
|
|
99
|
-
<div uk-sticky="sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky
|
|
99
|
+
<div uk-sticky="end: #sticky-dropbar; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky">
|
|
100
100
|
<nav class="uk-navbar-container">
|
|
101
101
|
<div class="uk-container">
|
|
102
102
|
<div uk-navbar="dropbar: true; dropbar-anchor: !.uk-navbar-container">
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
</div>
|
|
176
176
|
|
|
177
177
|
<div class="tm-header">
|
|
178
|
-
<div uk-sticky="show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky
|
|
178
|
+
<div uk-sticky="end: #scrollup-dropdown; show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky">
|
|
179
179
|
<nav class="uk-navbar-container">
|
|
180
180
|
<div class="uk-container uk-container-expand">
|
|
181
181
|
<div uk-navbar>
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
</div>
|
|
255
255
|
|
|
256
256
|
<div class="tm-header">
|
|
257
|
-
<div uk-sticky="show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky
|
|
257
|
+
<div uk-sticky="end: #scrollup-dropbar; show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky">
|
|
258
258
|
<nav class="uk-navbar-container">
|
|
259
259
|
<div class="uk-container uk-container-expand">
|
|
260
260
|
<div uk-navbar="dropbar: true; dropbar-anchor: !.uk-navbar-container">
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
<div id="transparent-dropdown" class="uk-section-primary uk-preserve-color">
|
|
336
336
|
|
|
337
337
|
<div class="tm-header">
|
|
338
|
-
<div uk-sticky="show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; cls-inactive: uk-navbar-transparent uk-light
|
|
338
|
+
<div uk-sticky="start: 200; end: #transparent-dropdown; show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; cls-inactive: uk-navbar-transparent uk-light">
|
|
339
339
|
<nav class="uk-navbar-container">
|
|
340
340
|
<div class="uk-container uk-container-expand">
|
|
341
341
|
<div uk-navbar>
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
<div id="transparent-dropbar" class="uk-section-secondary uk-preserve-color">
|
|
419
419
|
|
|
420
420
|
<div class="tm-header">
|
|
421
|
-
<div uk-sticky="show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; cls-inactive: uk-navbar-transparent uk-light
|
|
421
|
+
<div uk-sticky="start: 200; end: #transparent-dropbar; show-on-up: true; animation: uk-animation-slide-top; sel-target: .uk-navbar-container; cls-active: uk-navbar-sticky; cls-inactive: uk-navbar-transparent uk-light">
|
|
422
422
|
<nav class="uk-navbar-container">
|
|
423
423
|
<div class="uk-container uk-container-expand">
|
|
424
424
|
<div uk-navbar="dropbar: true; dropbar-anchor: !.uk-navbar-container">
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<body style="padding-bottom: 100vh;">
|
|
12
12
|
|
|
13
|
-
<div class="uk-section uk-section-primary uk-position-z-index-negative uk-flex uk-flex-center uk-flex-middle uk-text-center" uk-sticky="position: auto;
|
|
13
|
+
<div class="uk-section uk-section-primary uk-position-z-index-negative uk-flex uk-flex-center uk-flex-middle uk-text-center" uk-sticky="position: auto; end: 100%" uk-height-viewport>
|
|
14
14
|
<div class="uk-container">
|
|
15
15
|
|
|
16
16
|
<h1 class="uk-heading-2xlarge" uk-parallax="target: !.uk-section +* +*; end: 100%; y: -400; easing: 0;">Sticky Section</h1>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<div class="uk-container">
|
|
23
23
|
|
|
24
24
|
<div id="js-sticky-parallax-container" class="uk-position-relative uk-background-muted uk-text-center uk-height-viewport-3">
|
|
25
|
-
<div class="uk-flex uk-flex-center uk-flex-middle uk-height-viewport" uk-sticky="
|
|
25
|
+
<div class="uk-flex uk-flex-center uk-flex-middle uk-height-viewport" uk-sticky="end: #js-sticky-parallax-container">
|
|
26
26
|
<div>
|
|
27
27
|
|
|
28
28
|
<img class="uk-position-relative uk-position-z-index" src="images/size-v.jpg" width="400" height="800" alt="" style="max-width: 50vw" uk-parallax="target: #js-sticky-parallax-container; y: 0,-250; easing: -1; start: 100vh; end: 100vh;">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
<div class="uk-section uk-section-default uk-text-center uk-position-relative uk-position-z-index">
|
|
71
71
|
|
|
72
|
-
<div class="uk-cover-container uk-position-z-index-negative" uk-sticky="
|
|
72
|
+
<div class="uk-cover-container uk-position-z-index-negative" uk-sticky="end: true" uk-height-viewport>
|
|
73
73
|
<img src="images/photo.jpg" width="1800" height="1200" alt="" uk-cover>
|
|
74
74
|
</div>
|
|
75
75
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
<div>
|
|
120
120
|
|
|
121
|
-
<div class="uk-background-muted uk-text-center uk-height-viewport" uk-sticky="
|
|
121
|
+
<div class="uk-background-muted uk-text-center uk-height-viewport" uk-sticky="end: #js-sticky-parallax-viewport">
|
|
122
122
|
|
|
123
123
|
<div uk-parallax="target: #js-sticky-parallax-viewport; start: 100vh; end: 100vh; y: 10vh, 80vh; easing: 0">
|
|
124
124
|
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
<div id="js-sticky-parallax-images" style="min-height: 250vh" uk-grid>
|
|
150
150
|
<div class="uk-width-expand">
|
|
151
151
|
|
|
152
|
-
<div class="uk-background-muted uk-height-viewport" uk-sticky="
|
|
152
|
+
<div class="uk-background-muted uk-height-viewport" uk-sticky="end: #js-sticky-parallax-images">
|
|
153
153
|
<div uk-parallax="target: #js-sticky-parallax-images; y: 55vh, 45vh;">
|
|
154
154
|
<img class="uk-position-center-left" src="images/photo.jpg" width="1800" height="1200" alt="" uk-parallax="target: #js-sticky-parallax-images; start: 125vh; end: 100% + 100vh - 185vh; opacity: 1,1,0; easing:0">
|
|
155
155
|
<img class="uk-position-center-left" src="images/photo2.jpg" width="1800" height="1200" alt="" uk-parallax="target: #js-sticky-parallax-images; start: 175vh; end: 100% + 100vh - 235vh; opacity: 0,1 16.666%,1 99%,0; easing:0">
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
<div id="js-sticky-parallax-images-all" style="min-height: 250vh" uk-grid>
|
|
210
210
|
<div class="uk-width-expand">
|
|
211
211
|
|
|
212
|
-
<div class="uk-background-muted uk-height-viewport" uk-sticky="
|
|
212
|
+
<div class="uk-background-muted uk-height-viewport" uk-sticky="end: #js-sticky-parallax-images-all">
|
|
213
213
|
<div uk-parallax="target: #js-sticky-parallax-images-all; y: 55vh, 45vh;">
|
|
214
214
|
<img class="uk-position-center-left" src="images/photo.jpg" width="1800" height="1200" alt="" uk-parallax="target: #js-sticky-parallax-images-all; start: 100vh; end: 100% + 100vh - 160vh; opacity: 1,1 99%,0; easing:0">
|
|
215
215
|
<img class="uk-position-center-left" src="images/photo2.jpg" width="1800" height="1200" alt="" uk-parallax="target: #js-sticky-parallax-images-all; start: 150vh; end: 100% + 100vh - 210vh; opacity: 0,1 16.666%,1 99%,0; easing:0">
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
</div>
|
|
227
227
|
<div class="uk-width-expand">
|
|
228
228
|
|
|
229
|
-
<div class="uk-height-viewport" uk-sticky="
|
|
229
|
+
<div class="uk-height-viewport" uk-sticky="end: #js-sticky-parallax-images-all">
|
|
230
230
|
<div uk-parallax="target: #js-sticky-parallax-images-all; y: 55vh, 45vh;">
|
|
231
231
|
|
|
232
232
|
<div class="uk-position-center-left" uk-parallax="target: #js-sticky-parallax-images-all; start: 100vh; end: 100% + 100vh - 150vh; opacity: 0,1 20%,1 80%,0">
|
|
@@ -258,5 +258,21 @@
|
|
|
258
258
|
|
|
259
259
|
</div>
|
|
260
260
|
|
|
261
|
+
<div class="uk-section uk-section-muted uk-section-xlarge uk-flex uk-flex-center uk-flex-middle uk-text-center">
|
|
262
|
+
<div class="uk-container">
|
|
263
|
+
|
|
264
|
+
<h1 class="uk-heading-2xlarge">Reveal Following Section</h1>
|
|
265
|
+
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<div class="uk-section uk-section-primary uk-section-xlarge uk-flex uk-flex-center uk-flex-middle uk-text-center uk-position-z-index-negative" uk-sticky="position: bottom; start: -100%; end: 0">
|
|
270
|
+
<div class="uk-container">
|
|
271
|
+
|
|
272
|
+
<h1 class="uk-heading-2xlarge">Sticky Section</h1>
|
|
273
|
+
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
261
277
|
</body>
|
|
262
278
|
</html>
|