-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
54 lines (45 loc) · 1.02 KB
/
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
46
47
48
49
50
51
52
53
54
.gradient-text {
color: transparent;
background: conic-gradient(#D9D7F1 12%,
#BAABDA 12%, #BAABDA 33%,
#E7FBBE 33%, #E7FBBE 55%,
#FFCBCB 55%, #FFCBCB 70%,
#B5DEFF 70%, #B5DEFF 87%,
#F7D1BA 87%);
background-size: 50%;
background-clip: text;
-webkit-background-clip: text;
animation: expand-rev 0.5s ease forwards;
cursor: pointer;
}
.gradient-text:hover {
animation: expand 0.5s ease forwards;
}
@keyframes expand {
0% {
background-size: 50%;
background-position: 0 0;
}
20% {
background-size: 55%;
background-position: 0 1em;
}
100% {
background-size: 325%;
background-position: -10em -4em;
}
}
@keyframes expand-rev {
0% {
background-size: 325%;
background-position: -10em -4em;
}
20% {
background-size: 55%;
background-position: 0 1em;
}
100% {
background-size: 50%;
background-position: 0 0;
}
}