Yang
Yang

Reputation: 6892

How to change html background dynamically

I want to change the background of my webpage gradually from red to white within 5 seconds in a gradient manner. How do I acheive that? CSS? javascript?

Upvotes: 0

Views: 402

Answers (1)

Eray
Eray

Reputation: 7128

you can use javascript setTimeout functions.

For example

setTimeout("changeBackground()",3000); // call changeBackground() function , 3 seconds later.

Upvotes: 3

Related Questions