I have the following CSS animation:
.border-strobe {
-webkit-animation: border-strobe-animation 1.5s infinite ease-in-out;
}
@-webkit-keyframes border-strobe-animation {
0% {border:2px solid #FF1d38;}
50% {border:2px solid #000000;}
100% {border:2px solid #FF1d38;}
}
Basically, what I want to do is:
• On hover (so .border-strobe:hover
) for example, I want to change the border colour to #FF1D38
.
• Once I move off the hover, I want to simply let the animation run it's normal course.
The problem however, is that I have a few elements on the pages with the class .border-strobe
and I want to keep them in time.
Is there a simple way to override the border colour using hover and keep the animations consistent with each other, or is it currently not possible to do this?
Does that make sense?