Trying to use Element.animate() to change background-color, to mimic refresh effect.
Code:
const blinkOnPage = (id) => {
document.getElementById(id).animate(
[
{"background-color": '#def', color: '#def'},
], {
easing: 'ease-in-out',
duration: 200
});
}
In my test, color works, but background-color doesn't, how to fix it?