-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
46 lines (44 loc) · 817 Bytes
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
font-family: 'Josefin Sans', sans-serif;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
font-size: 5rem;
}
#target {
display: flex;
width: 300px;
text-align: left;
animation: color 30s alternate infinite;
perspective: 200px;
transform: translateX(26px);
}
.word {
position: absolute;
}
@keyframes color {
0% {color: blue;}
50% {color: #ec006e;}
100% {color: blue;}
}
.letter {
transform: translateZ(200px);
}
@keyframes anim {
25% {
transform: translateZ(0px);
opacity: 1;
}
32% {
opacity: 0;
transform: translateZ(-280px) translateX(200px);
}
}