Css animation + photo definition animation, css animation photo Definition

Source: Internet
Author: User

Css animation + photo definition animation, css animation photo Definition

Source code:

<! DOCTYPE html>
<Html>
<Head>
<Title> donghua </title>
<Meta charset = "UTF-8">
<Style type = "text/css">
. Beijing {
Border: 1px solid black;
Width: 100%;
Height: 800px;
Background: black;
}
. A1 img {
Width: 100px;
Height: 100px;
-Webkit-filter: blur (2px );
}
. Qq {
Position: absolute;
Left: 500px;
Top: 150px;
}
. Qq img: hover {
Animation-name: one;
Animation-duration: 3 s;
Animation-fill-mode: forwards;
}
@ Keyframes one {
0% {width: 200px; height: 200px;-webkit-filter: blur (4px );}
25% {width: 400px; height: 400px;-webkit-filter: blur (3px );}
80% {width: 600px; height: 600px;-webkit-filter: blur (2px );}
100% {width: 800px; height: 800px;-webkit-filter: blur (0px );}
}
. Ww {
Position: absolute;
Left: 540px;
Top: 180px;
}
. Ww img: hover {
Animation-name: one;
Animation-duration: 5S;
Animation-fill-mode: forwards;
}
. Ss {
Position: absolute;
Left: 550px;
Top: 240px;
}
. Ss img: hover {
Animation-name: one;
Animation-duration: 5S;
Animation-fill-mode: forwards;
}
. Tt {
Position: absolute;
Left: 560px;
Top: 260px;
}
. Tt img: hover {
Animation-name: one;
Animation-duration: 5S;
Animation-fill-mode: forwards;
}
. Oo {
Position: absolute;
Left: 590px;
Top: 300px;
}
. Oo img: hover {
Animation-name: one;
Animation-duration: 5S;
Animation-fill-mode: forwards;
}
</Style>
</Head>
<Body>
<Div class = "beijing">
<Div class = "a1 qq"> </div>
<Div class = "a1 ww"> </div>
<Div class = "a1 ss"> </div>
<Div class = "a1 tt"> </div>
<Div class = "a1 oo"> </div>
</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.