CSS3 senses mouse background flickering and image scaling, and css3 senses

Source: Internet
Author: User

CSS3 senses mouse background flickering and image scaling, and css3 senses

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> CSS3 senses background flickering and dynamic image scaling effects of the mouse </title>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312">
<Style type = "text/css">
/* Title background */
H2 {background: rgba (0.5, 0,); color: # FFF; padding: 10px 0; width: 300px; text-align: center; transition: opacity 0.5 s linear 0 s ;}
H2: hover {-moz-animation: bg. 5 s memory-in-out;-webkit-animation: bg. 5 s memory-in-out ;}
H2, a {cursor: pointer; margin: 10px auto ;}
@-Moz-keyframes bg {0% {background: rgba (0.18, 53 );}
25% {background: rgba (0.5, 53 );}
50% {background: rgba (0.1, 53 );}
75% {background: rgba (0.5, 53 );}
100% {background: rgba (0.18, 53 );}}
@-Webkit-keyframes bg {0% {background: rgba (0.18, 53 );}
25% {background: rgba (0.5, 53 );}
50% {background: rgba (0.1, 53 );}
75% {background: rgba (0.3, 53 );}
100% {background: rgba (0.18, 53 );}}
/* Magnifiers */
A {display: block; width: 50px; height: 50px; border-radius: 50%; background: #000; transition: opacity 0.2 s linear 0 s; background: url(eye.png) no-repeat;}/* use it as a magnifier */
A: hover {-moz-animation: heart_beat. 5 s release-in-out;-webkit-animation: heart_beat. 5 s release-in-out ;}
@-Moz-keyframes heart_beat {0% {-moz-transform: scale (1 )}
25% {-moz-transform: scale (1.70 )}
50% {-moz-transform: scale (0.9 )}
75% {-moz-transform: scale (1.55 )}
100% {-moz-transform: scale (1 )}}
@-Webkit-keyframes heart_beat {0% {-webkit-transform: scale (1 )}
25% {-webkit-transform: scale (1.70 )}
50% {-webkit-transform: scale (0.9 )}
75% {-webkit-transform: scale (1.55 )}
100% {-webkit-transform: scale (1 )}}
Div {width: 500px; margin: 0 auto; border: solid 1px # ccc; padding: 20px; background: rgba (255,255,255, 0.5); text-align: center ;}
</Style>
</Head>
<Body>
<Div> http://www.999jiujiu.com/</div>
<Div>
<H1> move the mouse over and add an animation <H2> life of front-end engineers <A> </a>
</Div>
</Body>
</Html>

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.