-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
51 lines (44 loc) · 793 Bytes
/
style.css
File metadata and controls
51 lines (44 loc) · 793 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding: 0 1rem;
}
.scroll-animate {
width: 100%;
max-width: 1100px;
margin: 5rem auto;
border-radius: 5px;
height: 300px;
background: rgba(0, 0, 0, 0.3);
transition: 1s ease all;
}
[data-fade] {
opacity: 0;
}
[data-fade].show {
opacity: 1;
}
[data-transform] {
background-color: transparent;
overflow: hidden;
}
[data-transform] .transform {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
border-radius: 5px;
transition: 1s ease all;
transform: translateX(-100%);
}
[data-transform].right .transform {
transform: translateY(-100%);
}
[data-transform].bottom .transform {
transform: translateY(100%);
}
[data-transform].show .transform {
transform: translateX(0);
}