Is it possible to get which stage of a CSS transition an object is in with Javascript, without the use of a interval, or relying on a starting timestamp? I know that transitions can be strung together, but I'd rather avoid that if I can.
For example for a div going through the following transition:
@keyframes example {
0% {background: red;}
50% {background: blue;}
100% {background: yellow;}
}
Is it possible to find if the div is between 0% and 50%? Pure Javascript please.