css动画+照片清晰度动画的实现方法
导读:收集整理的这篇文章主要介绍了css动画+照片清晰度动画的实现方法,觉得挺不错的,现在分享给大家,也给大家做个参考。 实例如下:源代码:XML/HTML Code复制内容到剪贴板 <!DOCTYPE html> ...
收集整理的这篇文章主要介绍了css动画+照片清晰度动画的实现方法,觉得挺不错的,现在分享给大家,也给大家做个参考。 实例如下:
源代码:
XML/HTML 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: 3s;
- 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"> img src="43a7d933c895d143b233160576f082025aaf074a.jpg"> /div>
- div class="a1 ww"> img src="03087bf40ad162d9ec74553b14DFa9ec8a13cd7a.jpg"> /div>
- div class="a1 ss"> img src="b151f8198618367ac7d2a1e92b738bd4b31ce5af.jpg"> /div>
- div class="a1 tt"> img src="023b5bb5c9ea15cec72cb6d6b2003af33b87b22b.jpg"> /div>
- div class="a1 oo"> img src="c2cec3fdfc03924578c6CFe18394a4c27c1e25e8.jpg"> /div>
- /div>
- /body>
- /html>
以上这篇css动画+照片清晰度动画的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。
原文地址:http://www.cnblogs.COM/yzybc/Archive/2016/07/13/5668053.html
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: css动画+照片清晰度动画的实现方法
本文地址: https://pptw.com/jishu/585004.html