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
<HTML>
<BODY>
<img src="sunrise.jpg" id=image style = "filter:alpha(opacity:10);">
</BODY>
</HTML>

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

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact