-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
89 lines (79 loc) · 1.76 KB
/
styles.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.frame {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 1px 2px 10px 0px rgba(0,0,0,0.3);
overflow: hidden;
background: #12c2e9; /* fallback for old browsers */
background: -webkit-linear-gradient(165deg, #f64f59, #c471ed, #12c2e9); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(165deg, #f64f59, #c471ed, #12c2e9); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
font-size: 0;
}
.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.line {
width: 225px;
height: 2px;
background: #fff;
margin: 15px 0;
animation: line 0.6s ease-out both;
}
.text {
stroke: #EA4C89;
stroke-dasharray: 270;
stroke-dashoffset: 0;
}
.a1 {
fill: #fff; /* Initial color */
stroke-width: 6;
animation: fill 1.2s ease-in-out both, color-change 6s infinite;
}
.a2 {
fill: none;
stroke-width: 12;
animation: fill 1.7s ease-in-out both, color-change 6s infinite;
}
.a3 {
fill: none;
stroke-width: 18;
animation: fill 2.2s ease-in-out both, color-change 6s infinite;
}
@keyframes fill {
from {
stroke-dashoffset: 0;
}
to {
stroke-dashoffset: 270;
}
}
@keyframes color-change {
0%, 25% {
stroke: #EA4C89; /* First color */
}
25%, 50% {
stroke: #5FC4FF; /* Second color */
}
50%, 75% {
stroke: #FFD700; /* Third color */
}
75%, 100% {
stroke: #32CD32; /* Fourth color */
}
}
@keyframes line {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}