-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
70 lines (62 loc) · 1.07 KB
/
index.scss
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
@font-face {
font-family: 'JetBrains Mono ExtraBold';
src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff/JetBrainsMono-ExtraBold.woff');
}
body {
background: #111;
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
margin: 0 auto;
}
h1 {
font-size: 5rem;
color: #fff;
font-family: 'JetBrains Mono Extrabold';
}
.rubber-span {
display: inline-block;
cursor: default;
}
.rubber-band {
user-select: none;
white-space: pre-wrap;
}
.rubberBand {
animation-name: rubberBand;
transition: all 0.3s ease-out;
will-change: transform;
}
.rubberBand:hover {
color: #02d463;
transition: all 0.3s;
}
.animated {
animation-duration: 1s;
animation-fill-mode: both;
}
@keyframes rubberBand {
0% {
transform: scale3d(1, 1, 1);
}
30% {
transform: scale3d(1.25, 0.75, 1);
}
40% {
transform: scale3d(0.75, 1.25, 1);
}
50% {
transform: scale3d(1.15, 0.85, 1);
}
65% {
transform: scale3d(0.95, 1.05, 1);
}
75% {
transform: scale3d(1.05, 0.95, 1);
}
100% {
transform: scale3d(1, 1, 1);
}
}