Source Code:
This example sets different speed values for the delay() method.
Click to fade in boxes with a delay
Result:
W3Schools.com
- Try it yourself