-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
73 lines (63 loc) · 1.31 KB
/
styles.css
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
72
73
.header {
height: 90vh;
padding-top: 35vh;
text-align: center;
background-color: aquamarine;
}
.l-prose-blocks__block {
position: relative;
border-top: 1px solid red;
}
.l-prose-blocks__block + .l-prose-blocks__block {
margin-top: 5em;
}
.l-prose-blocks__block * {
transition: all 300ms ease-in-out;
}
.l-prose-blocks__block h1 {
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
will-change: transform;
backface-visibility: hidden;
animation-delay: 300ms;
}
.l-prose-blocks__block img {
width: 100%;
height: auto;
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
will-change: transform;
backface-visibility: hidden;
}
.l-prose-blocks__block p {
opacity: 0;
position: absolute;
padding: 0 2em;
top: 25%;
}
.l-prose-blocks__block.is-visible h1,
.l-prose-blocks__block.is-visible img {
animation: clipInToRight 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
animation-delay: 300ms;
}
.l-prose-blocks__block.is-visible p {
animation: visible 600ms ease-in-out forwards;
animation-delay: 900ms;
}
@keyframes clipInToRight {
0% {
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}
99% {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
100% {
clip-path: none;
}
}
@keyframes visible {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}