How can I get an image to fade?

Sujatha Gopal

Fading can be done be the Opacity Settings. Actually opacity is one of the attribute in the Filter Property of the Casacading Style Sheets

Sample Code
<img src="sunrise.jpg" id=image style = "filter:alpha(opacity:10);">

Mention the value of the opacity to get the proper fading, also by increasing the opacity value the image gets darker also.