Several Effects of CSS3 on hover and css3hover

Source: Internet
Author: User

Several Effects of CSS3 on hover and css3hover

Share several effects codes of CSS3 under hover, and several effects of CSS3 when the mouse passes


}

Effect 2: zoom in and modify the scale (zoom in value)
*{
Transition: All 0.4 s bytes-in-out;
-Webkit-transition: All 0.4 s bytes-in-out;
-Moz-transition: All 0.4 s bytes-in-out;
-O-transition: All 0.4 s bytes-in-out;
}
*: Hover {
Transform: scale (1, 1.2 );
-Webkit-transform: scale (1.2 );
-Moz-transform: Scaling (1.2 );
-O-transform: scale (1, 1.2 );
-Ms-transform: scale (1, 1.2 );
}


Effect 3: rotate and zoom in to modify the rotate (rotation degree) scale (magnification value)

*{
Transition: All 0.4 s bytes-in-out;
-Webkit-transition: All 0.4 s bytes-in-out;
-Moz-transition: All 0.4 s bytes-in-out;
-O-transition: All 0.4 s bytes-in-out;
}

}


Effect 4: Move up, down, and left to modify the translate (X axis, Y axis)

*{
Transition: All 0.4 s bytes-in-out;
-Webkit-transition: All 0.4 s bytes-in-out;
-Moz-transition: All 0.4 s bytes-in-out;
-O-transition: All 0.4 s bytes-in-out;
}
*: Hover {
Transform: translate (0,-10px );
-Webkit-transform: translate (0,-10px );
-Moz-transform: translate (0,-10px );
-O-transform: translate (0,-10px );
-Ms-transform: translate (0,-10px );
}

 


Related Article

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.