-
Notifications
You must be signed in to change notification settings - Fork 1
/
snappy2.html
56 lines (52 loc) · 1.68 KB
/
snappy2.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.26/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.26/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="Map/map.css">
<script>var dojoConfig = { parseOnLoad: true };</script>
<script src="https://js.arcgis.com/3.26/"></script>
<script src="Map/map.js"></script>
<style>
body{
margin: 0%;
}
.containe {
/* scroll-snap-type: x mandatory; */
overflow-y: scroll;
-ms-scroll-snap-type: y mandatory;
scroll-snap-type: y mandatory;
max-height: 100vh;
}
.child1 {
scroll-snap-align:start;
height: 100vh;
background-color: aqua;
margin-bottom: 3px;
}
.child2 {
scroll-snap-align:start;
height: 100vh;
background-color: rgb(24, 179, 75);
margin-bottom: 3px;
}
.child3 {
scroll-snap-align:start;
height: 100vh;
background-color:orangered;
margin-bottom: 3px;
}
</style>
</head>
<body>
<div class="containe">
<div class="child1"></div>
<div class="child2"></div>
<div class="child3"></div>
</div>
</body>
</html>