CSS3 Image Opacity - Image transparency effect
CSS3 Image Opacity picture transparency is CSS3 recommended new features can be easily used to adjust the transparency of the picture page, CSS3 Image Opacity picture transparency is the use of design skills CSS3 the opacity standard attributes, if coupled with CSS hover action Judging, it is possible to create a special effect that automatically produces a difference in transparency when the mouse is moved to the top of the image. The new mainstream browsers all support CSS3 Image Opacity.
CSS3 Image Opacity Image transparency effect example 1. Pure image transparency adjustment
#Img0{
opacity: 1.0; //Set to completely opaque
filter: alpha(opacity=100); // IE8 and earlier versions
)
#Img1{
opacity: 0.5; //Set transparency to 0.5
filter: alpha (opacity=50); // IE8 and earlier versions
}
</style>
<img src="Image URL" id="Img0">
<img src="Image URL" id="Img1">


#Img3{
opacity: 0.5; //Set the transparency to 0.5
filter: alpha(opacity=50); // IE8 and earlier versions
)
#Img3:hover{
opacity: 1.0; //Set to completely opaque
filter : alpha(opacity=100); // IE8 and earlier versions
}
</style>
<img src="Image URL" id="Img3">

Post a Comment
0 Comments