How can I get an image to fade?
Created May 7, 2012
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.
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.