Could someone please help me figure out why the @keyframes rule is not working for me? I've tried adding -webkit- as a fix, but it doesn't seem to be helping at all.
.keyframe {
height: 15px;
width: 50px;
background-color: red;
-webkit-transition: width 4s;
}
.keyframe:hover {
width: 250px;
}
@-webkit-keyframes keyframe {
0% {
-webkit-background-color: red;
}
50% {
-webkit-background-color: yellow;
}
70% {
-webkit-background-color: blue;
}
100% {
-webkit-background-color: green;
}
}
<div class="keyframe"></div>
I assumed that the color would change as the bar reached its maximum width, but unfortunately, the color remains the same throughout. Any insights on where I might be going wrong?