-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathdemo.html
More file actions
71 lines (57 loc) · 1.47 KB
/
demo.html
File metadata and controls
71 lines (57 loc) · 1.47 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Range</title>
<link rel="stylesheet" href="../../../common.css" />
<script src="../../../common.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@6/dist/ionic/ionic.esm.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@6/css/ionic.bundle.css" />
<style>
ion-range {
max-width: 320px;
}
ion-range::part(tick) {
background: #a2d2ff;
}
ion-range::part(tick-active) {
background: #bde0fe;
}
ion-range::part(pin) {
display: inline-flex;
align-items: center;
justify-content: center;
background: #ffafcc;
color: #fff;
border-radius: 50%;
transform: scale(1.01);
top: -20px;
min-width: 28px;
height: 28px;
transition: transform 120ms ease, background 120ms ease;
}
ion-range::part(pin)::before {
content: none;
}
ion-range::part(knob) {
background: #ffc8dd;
}
ion-range::part(bar) {
background: #a2d2ff;
}
ion-range::part(bar-active) {
background: #bde0fe;
}
</style>
</head>
<body>
<ion-app>
<ion-content>
<div class="container">
<ion-range min="0" max="10" value="5" pin="true" ticks="true" snaps="true"></ion-range>
</div>
</ion-content>
</ion-app>
</body>
</html>