forked from heyabhishekbajpai/SkillIssue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-html.html
More file actions
35 lines (35 loc) · 1003 Bytes
/
Copy pathtest-html.html
File metadata and controls
35 lines (35 loc) · 1003 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; padding: 0; font-family: sans-serif; background: #111; }
.wrapper {
position: sticky;
top: 0;
min-height: 100vh;
}
.inner {
min-height: 100vh;
background: #333;
border-top: 1px solid #fff;
border-radius: 2rem 2rem 0 0;
transform-origin: top center;
animation: scale-down linear both;
animation-timeline: view();
animation-range: exit-crossing 0% exit-crossing 100%;
will-change: transform;
}
@keyframes scale-down {
0% { transform: scale(1); }
100% { transform: scale(0.92); }
}
.footer { height: 100vh; background: #555; }
</style>
</head>
<body>
<div class="wrapper"><div class="inner" style="background:red"><h1>1</h1></div></div>
<div class="wrapper"><div class="inner" style="background:green"><h1>2</h1></div></div>
<div class="wrapper"><div class="inner" style="background:blue"><h1>3</h1></div></div>
<div class="footer"><h1>Footer</h1></div>
</body>
</html>