Skip to content

Commit 8a9b466

Browse files
committed
instructions
1 parent 7280bdd commit 8a9b466

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

cyclists/css/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@ canvas {
3232
font-family: sans-serif;
3333
text-align: center;
3434
opacity: 1;
35-
animation: descendOut 15s ease-in-out 1s forwards; /* ✅ Waits 5s, then moves down over 10s */
35+
animation: descendOut 15s ease-in-out forwards; /* ✅ No delay, smooth start */
3636
z-index: 1;
3737
}
3838

3939
@keyframes descendOut {
40+
from {
41+
opacity: 1;
42+
transform: translateX(-50%) translateY(0); /* ✅ Start at the defined position */
43+
}
4044
to {
4145
opacity: 0;
42-
transform: translateX(-50%) translateY(200px); /* ✅ Moves down slowly */
46+
transform: translateX(-50%) translateY(200px); /* ✅ Moves down smoothly */
4347
}
4448
}
49+

0 commit comments

Comments
 (0)