Move the mouse over the picture and the picture becomes larger and clearer (with transitions)

Source: Internet
Author: User

<! DOCTYPE html>


<meta charset= "UTF-8" >
<title> move your mouse to a picture to become larger and clearer (with transitions) </title>
<style type= "Text/css" >
div{
width:300px;
height:300px;
margin:50px Auto;
Overflow:hidden;
Filter:alpha (OPACITY=50);
-moz-opacity:0.5;
opacity:0.5;
}
Div img{
Cursor:pointer;
Transition:all 0.6s;
-moz-transition:all 0.6s; /* 0.6s Complete transition effect */
-webkit-transition:all 0.6s;
}
Div img:hover{
Transform:scale (1.2); /* Zoom in 1.2 times times */
}
div:hover{
Filter:alpha (opacity=100);
-moz-opacity:1;
Opacity:1;
}
</style>

<body>
<div>

</div>
</body>

Moving the mouse to the picture is getting bigger and clearer (with transitions)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.