Skip to content

Commit 45c3175

Browse files
authored
Merge pull request #789 from live-codes/loading-logo
pulsating loading logo
2 parents 9d156b4 + 9c62d48 commit 45c3175

1 file changed

Lines changed: 27 additions & 39 deletions

File tree

src/livecodes/styles/index.css

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -95,77 +95,65 @@ body,
9595
}
9696
}
9797

98-
/* Logo SVG */
99-
.B {
100-
stroke: none;
101-
}
102-
103-
.C {
104-
fill: url('#C');
105-
}
106-
107-
.E {
108-
fill-rule: nonzero;
109-
}
110-
111-
@keyframes pulse2 {
112-
0%,
113-
100% {
114-
opacity: 0;
115-
}
116-
117-
50% {
118-
opacity: 1;
119-
}
120-
}
121-
12298
@keyframes pulse {
12399
0%,
124100
100% {
125-
opacity: 0.9;
101+
transform: scale(0.8) translateY(-4%) translateX(-7%);
126102
}
127103

128104
50% {
129-
opacity: 1;
105+
transform: scale(1);
130106
}
131107
}
132108

133109
@keyframes colorPulse {
134110
0%,
135111
100% {
136-
stop-color: #d7d7d7;
112+
stop-color: #8a8a8a;
137113
}
138114

139115
50% {
140-
stop-color: #b0b0b0;
116+
stop-color: #d7d7d7;
141117
}
142118
}
143119

144120
@keyframes colorPulse2 {
145121
0%,
146122
100% {
147-
stop-color: #626262;
123+
stop-color: #444;
148124
}
149125

150126
50% {
151-
stop-color: #444;
127+
stop-color: #626262;
152128
}
153129
}
154130

155-
#loading:not(.click-to-load) #cube-container {
156-
animation: pulse2 3s ease-in-out infinite;
157-
scale: 0.9;
131+
svg .B {
132+
stroke: none;
133+
}
134+
135+
svg .C {
136+
fill: url('#C');
137+
}
138+
139+
svg .E {
140+
fill-rule: nonzero;
141+
}
142+
143+
#loading:not(.click-to-load) svg #cube-container {
144+
animation: pulsate 3s ease-in-out infinite;
158145
transform-origin: center;
159146
}
160147

161-
#loading:not(.click-to-load) #inner-cube {
162-
animation: pulse 2s ease-in-out infinite;
148+
#loading:not(.click-to-load) svg #inner-cube {
149+
animation: pulse 3s ease-in-out infinite;
150+
transform-origin: center;
163151
}
164152

165-
#loading:not(.click-to-load) #gradient-stop-1 {
166-
animation: colorPulse 4s ease-in-out infinite;
153+
#loading:not(.click-to-load) svg #gradient-stop-1 {
154+
animation: colorPulse 1s ease-in-out infinite;
167155
}
168156

169-
#loading:not(.click-to-load) #gradient-stop-2 {
170-
animation: colorPulse2 4s ease-in-out infinite;
157+
#loading:not(.click-to-load) svg #gradient-stop-2 {
158+
animation: colorPulse2 1s ease-in-out infinite;
171159
}

0 commit comments

Comments
 (0)