+ 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 Answers
17th May 2020, 12:43 AM
CalviŐ˛
CalviŐ˛ - avatar
0
CalviŐ˛ thanks a lot...
17th May 2020, 12:44 AM
Sajid
Sajid - avatar