0

How to change color of a css animation with Javascript?

Assume that I have a css animation and it is going right, I want to change his color if it reach the value(for example if(anim.style.width==100){anim.style.backgroundColor=#ffffff}).But it is not working.How can I do that?

30th Jul 2017, 9:21 AM
Yusuf
Yusuf - avatar
1 Réponse
+ 3
... .style.backgroundColor="#ffffff";
30th Jul 2017, 9:26 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar