Source Code:
Result:
This example sets different speed values for the delay() method.
Click to fade in boxes with a delay
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself