-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (45 loc) · 1.15 KB
/
index.html
File metadata and controls
52 lines (45 loc) · 1.15 KB
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
<style>
body {
counter-reset: carousel;
}
.carousel{
display: flex;
--carousel-active-item: 1;
}
.carousel-item {
width: 10em;
height: 7em;
background-image: paint(carousel-item);
counter-increment: carousel-item;
--carousel-item: counter(carousel-item);
}
.carousel-item:active-carousel-item {
background: blue;
}
</style>
<div class="carousel" style="--carousel-active-item: 1">
<div class="carousel-item" style="--carousel-item: 1;">
First
</div>
<div class="carousel-item" style="--carousel-item: 2;">
Second
</div>
<div class="carousel-item" style="--carousel-item: 3;">
Last
</div>
</div>
<div class="carousel" style="--carousel-active-item: 2">
<div class="carousel-item" style="--carousel-item: 1;">
First
</div>
<div class="carousel-item" style="--carousel-item: 2;">
Second
</div>
<div class="carousel-item" style="--carousel-item: 3;">
Last
</div>
</div>
<script src="houdinify.js"></script>
<script>
paintWorklet.addModule("paintWorklet.js")
</script>