-
Notifications
You must be signed in to change notification settings - Fork 0
/
layer.css
177 lines (173 loc) · 3.83 KB
/
layer.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
html {
width: 100vw;
height: 100vh;
}
body {
width: 100%;
height: 100%;
margin: 0px;
display: flex;
justify-content: center;
align-items: center;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
transform: scale(1);
}
body.hover {
background: #242424;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
transform: scale(0.8);
}
.layer {
width: 300px;
height: 300px;
position: absolute;
}
.layer:hover {
animation-delay: 1s;
transition-delay: 1s;
}
@keyframes twist1 {
0% {
transform: rotateX(0deg) rotateZ(0deg);
}
100% {
transform: rotateX(45deg) rotateZ(45deg);
}
}
.layer1 {
box-shadow: 0 2px 4px #00000006, 0 8px 16px #00000012;
margin: auto auto;
animation: 1.5s twist1 cubic-bezier(0.85, 0, 0.15, 1) reverse;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
background: white;
animation-delay: 0.3s;
transition-delay: 0.3s;
}
.layer1.hover {
box-shadow: 4px 4px 8px #ffffff24, 32px 32px 64px #ffffff48;
animation: 1.5s twist1 cubic-bezier(0.85, 0, 0.15, 1);
transform: rotateX(45deg) rotateZ(45deg);
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}
@keyframes twist2 {
0% {
transform: rotateX(0deg) rotateZ(0deg);
}
100% {
transform: rotateX(45deg) rotateZ(45deg);
}
}
.layer2 {
margin: auto auto;
animation: 1.5s twist2 cubic-bezier(0.85, 0, 0.15, 1) reverse;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
opacity: 0;
backdrop-filter: blur(8px);
animation-delay: 0.2s;
transition-delay: 0.2s;
}
.layer2.hover {
animation: 1.5s twist2 cubic-bezier(0.85, 0, 0.15, 1);
transform: rotateX(45deg) rotateZ(45deg);
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
opacity: 1;
}
.tint {
width: 300px;
height: 300px;
background: #d3d3d3;
opacity: 0.5;
}
@keyframes twist3 {
0% {
transform: rotateX(0deg) rotateZ(0deg);
}
100% {
transform: rotateX(45deg) rotateZ(45deg);
}
}
.layer3 {
animation: 1.5s twist3 cubic-bezier(0.85, 0, 0.15, 1) reverse;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
border: solid 2px #fac107;
animation-delay: 0.1s;
transition-delay: 0.1s;
}
.layer3.hover {
animation: 1.5s twist3 cubic-bezier(0.85, 0, 0.15, 1);
transform: rotateX(45deg) rotateZ(45deg);
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}
@keyframes twist4 {
0% {
opacity: 0;
transform: rotateX(0deg) rotateZ(0deg);
}
100% {
opacity: 1;
transform: rotateX(45deg) rotateZ(45deg);
}
}
.layer4 {
animation: 1.5s twist4 cubic-bezier(0.85, 0, 0.15, 1) reverse;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
opacity: 0;
background: repeating-linear-gradient(
-45deg,
#fa076c,
#fa076c 2px,
rgba(52, 52, 0, 0.05) 2px,
rgba(52, 52, 0, 0.05) 10px
);
clip-path: polygon(
0% 0%,
0% 100%,
3vmin 100%,
3vmin 3vmin,
calc(100% - 3vmin) 3vmin,
calc(100% - 3vmin) calc(100% - 3vmin),
3vmin calc(100% - 3vmin),
3vmin 100%,
100% 100%,
100% 0%
);
}
.layer4.hover {
opacity: 1;
animation: 1.5s twist4 cubic-bezier(0.85, 0, 0.15, 1);
transform: rotateX(45deg) rotateZ(45deg);
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}
@keyframes twist5 {
0% {
transform: rotateX(0deg) rotateZ(0deg);
}
100% {
transform: rotateX(45deg) rotateZ(45deg);
}
}
.layer5 {
width: 220px;
height: 220px;
animation: 1.5s twist5 cubic-bezier(0.85, 0, 0.15, 1) reverse;
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
padding: 40px;
color: #242424;
font-family: sans-serif;
border: dashed 1px transparent;
}
.layer5.hover {
animation: 1.5s twist5 cubic-bezier(0.85, 0, 0.15, 1);
transform: rotateX(45deg) rotateZ(45deg);
transition: all 1.5s cubic-bezier(0.85, 0, 0.15, 1);
color: white;
border: dashed 1px white;
}
.title {
font-size: 18px;
font-weight: bold;
margin-bottom: 8px;
}
.sonnet{
font-size: 10px;
}