Skip to content

Commit e025783

Browse files
authored
Add pulsing effect to "run tests" button (#1637)
1 parent 0571e36 commit e025783

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

style.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,19 @@ $colors: (
214214

215215
// End Variables, Functions, Mixins
216216

217+
// Animations
218+
219+
@keyframes pulse-animation {
220+
0% {
221+
filter: saturate(1) brightness(1);
222+
}
223+
100% {
224+
filter: saturate(1.5) brightness(1.5);
225+
}
226+
}
227+
228+
// End animations
229+
217230
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Roboto:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@500&display=swap");
218231

219232
:root {
@@ -315,6 +328,18 @@ input {
315328
@include themedProperty(background, "input-disabled-bg");
316329
@include themedProperty(color, "input-placeholder");
317330
}
331+
332+
&.pulse {
333+
animation-name: pulse-animation;
334+
animation-duration: 2s;
335+
animation-direction: alternate;
336+
animation-iteration-count: infinite;
337+
animation-play-state: running;
338+
339+
&:hover {
340+
animation-play-state: paused;
341+
}
342+
}
318343
}
319344

320345
input {

views/tests.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See the LICENSE file for copyright details
1818
</form>
1919
<div id="results">
2020
<hr />
21-
<button id="run">Run Tests</button>
21+
<button id="run" class="pulse">Run Tests</button>
2222
</div>
2323
2424
<% let resourcesToLoad = new Set(); %>

0 commit comments

Comments
 (0)