Skip to content

Commit

Permalink
animating box colour
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Sep 24, 2024
1 parent 487070a commit 1a58a60
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,23 @@
width: 100%;
}

@keyframes box-anim {
0% {
background-color: gray;
}
50% {
background-color: lightgray;
}
100% {
background-color: gray;
}
}

.box {
background-color: gray;
padding: 20px;
display: inline;
text-align: center;
border-radius: 20px;
animation: box-anim 5s linear infinite;
}

0 comments on commit 1a58a60

Please sign in to comment.