Source Code:
Demonstrate fadeTo() with different parameters.
Click to fade boxes
Result:
W3Schools.com
- Try it yourself