+ 1

How do I change the background colour smoothly using vanilla js only?

I'm assigning background colors to body randomly from an array upon a button being clicked. But it happens fast. I need it smooth like 1s or 2s. Help pls.

17th May 2020, 12:08 AM
Sajid
Sajid - avatar
2 Respuestas
17th May 2020, 12:43 AM
Calviղ
Calviղ - avatar
0
Calviղ thanks a lot...
17th May 2020, 12:44 AM
Sajid
Sajid - avatar