I am currently working on developing a dynamic 'hinting' system. I am trying to figure out a way to make an element blink using only CSS, but I'm not sure if it's even possible. In the past, I believed that you needed to define the beginning and ending colors of your animation, but I have since learned that this is not true., Since I want this to work on multiple background colors, that isn't an option for me.
I've experimented with various options and searched Google (inherit, currentColor etc.), but all I have achieved so far is transitioning from white/transparent to #ef9633.
Does anyone have any suggestions or alternative solutions that I could try?
Code:
@keyframes nk-hint {
0% { background-color: #XXX; }
50% { background-color: #ef9633; }
100% { background-color: #XXX; }
}
@-webkit-keyframes nk-hint {
0% { background-color: #XXX; }
50% { background-color: #ef9633; }
100% { background-color: #XXX; }
}
Thank you in advance!