-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
44 lines (41 loc) · 796 Bytes
/
main.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
.bodied {
background-color: #111;
display: grid;
font-size: 16px;
height: 100vh;
place-items: center;
}
@keyframes clickflip {
15% {
transform-origin: bottom left;
transform: rotateZ(-20deg) translateX(-0.5rem);
}
50% {
transform-origin: center;
transform: rotateZ(-10deg) translateX(0) translateY(-100%) rotateX(-0.5turn);
}
75% {
transform-origin: center;
transform: rotateZ(0) translateY(-100%) rotateX(0);
}
100% {
transform: translateY(0);
}
}
.click {
border: 1px solid aquamarine;
border-radius: 50px;
background-color: black;
color: #faf;
font-size: 3rem;
margin: auto;
padding: 4px 16px;
place-self: center;
white-space: nowrap;
}
.click:hover {
cursor: alias;
}
.flip {
animation: clickflip 0.5s linear;
}