-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage4.html
62 lines (60 loc) · 2.05 KB
/
page4.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page 4</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="booster-config" content='{
"basePath" : "/scripts/boosts/",
"conductors" : [
{ "conductor": "unveil", "selector" : "[data-unveil]", "strategy": "eager", "version": "4" }
]
}'>
<link rel="stylesheet" href="/styles/styles.css" />
<script defer src="https://cdn.jsdelivr.net/gh/bigskysoftware/htmx@1.9.12/src/htmx.min.js"></script>
<script src="/main.js" type="module"></script>
</head>
<body hx-ext="booster">
<header id="header">
<nav
hx-boost="true"
hx-target="#main"
hx-select="#main"
hx-swap="outerHTML show:#header:top"
>
<a href="/">Home</a>
<a href="/page2.html">Page 2</a>
<a href="/page3.html">Page 3</a>
<a href="/page4.html">Page 4</a>
</nav>
</header>
<main id="main" hx-history-elt>
<h1>Page 4</h1>
<section>
<header>
<h2>Example conductor: unveil.js</h2>
<p>
Trigger an unveil animation when an image or set of images have loaded.
<p>
</header>
<ul>
<li>
<img data-unveil loading="lazy" src="https://picsum.photos/seed/pic1/800/600" width="800" height="600" alt="">
</li>
<li data-unveil>
<img loading="lazy" src="https://picsum.photos/seed/pic2/800/600" width="800" height="600" alt="">
</li>
<li data-unveil>
<img loading="lazy" src="https://picsum.photos/seed/pic3/800/600" width="800" height="600" alt="">
</li>
<li data-unveil>
<img loading="lazy" src="https://picsum.photos/seed/pic4/800/600" width="800" height="600" alt="">
</li>
<li data-unveil>
<img loading="lazy" src="https://picsum.photos/seed/pic5/800/600" width="800" height="600" alt="">
</li>
</ul>
</section>
</main>
</body>
</html>