Skip to content

Commit 08fbcbd

Browse files
alternate background color
1 parent ca62e47 commit 08fbcbd

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Sprint-3/alarmclock/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ First off, once you've branched off `main`, then update the title element in `in
66
You will need to write your implementation in `alarmclock.js`.
77

88
## How the clock should work
9-
9+
1010
When you click the `Set Alarm` button the counter at the top of the screen should change to the number you entered in the `input` field. For example, if the `input` field says `10` then the title should say `Time Remaining: 00:10`.
1111

1212
Every one second the title should count down by one.

Sprint-3/alarmclock/style.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,14 @@ h1 {
1515
}
1616

1717
.finish-countdown {
18-
background-color: darkblue;
18+
animation: police 0.5s infinite;
19+
}
20+
21+
@keyframes police {
22+
from{
23+
background-color:blue;
24+
}
25+
to{
26+
background-color: red;
27+
}
1928
}

0 commit comments

Comments
 (0)