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>