-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 1.13 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>3 Node Slider</title>
<style>
.prev, .current, .next {
width: 33.3%;
}
img {
height: 100%;
width: 100%;
object-fit: contain;
}
.no-transition { transition: none !important; }
</style>
</head>
<body style="margin: 0;">
<div style="display: flex; align-items: center; width: 100vw; height: 100vh;;">
<button onclick="app.onClickPrevNext(goToPrev = true)" aria-label="Previous item">Prev</button>
<div style="overflow: hidden; width: 100%; height: 100%; background: lightgrey;">
<div class="slider no-transition" style="display: flex; justify-content: space-around; width: 300%; height: 100%;">
<div class="prev" aria-hidden="true">
<img />
</div>
<div class="current" aria-hidden="false">
<img />
</div>
<div class="next" aria-hidden="true">
<img />
</div>
</div>
</div>
<button onclick="app.onClickPrevNext()" aria-label="Next item">Next</button>
</div>
<script src="./index.js" type="text/javascript"></script>
</body>
</html>