-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfloatText.css
More file actions
49 lines (44 loc) · 972 Bytes
/
Copy pathfloatText.css
File metadata and controls
49 lines (44 loc) · 972 Bytes
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
* {
margin: 0;
padding : 0;
font-family: "montserrat", sans-serif;
}
body {
height: 100vh;
background : linear-gradient(0deg, #3498db 50%, #fff 0%);
display : flex;
justify-content: center;
align-items : center;
}
.floating-text{
text-transform: uppercase;
font-size : 80px;
font-weight : 900;
letter-spacing: 6px;
color : #ffffff40;
transform: translateY(0);
animation: fl1 3s infinite linear;
}
.floating-text::before {
content : attr(data-text);
position: absolute;
color : #000;
clip-path : polygon(0 0, 100% 0, 100% 50%, 0 50%);
animation: fl2 3s infinite linear;
}
@keyframes fl1 {
30% {
transform: translateY(10%) rotate(4deg);
}
70% {
transform: translateY(10%) rotate(-4deg);
}
}
@keyframes fl2 {
30% {
clip-path: polygon(0 0, 100% 0, 100% 24%, 0 56%);
}
70% {
clip-path: polygon(0 0, 100% 0, 100% 56%, 0 25%);
}
}