看见一个挺不错的特效。

CSS
@-webkit-keyframes blur {
    0% { -webkit-filter: blur(10px); /* Chrome, Opera */ -moz-filter: blur(10px); -ms-filter: blur(10px); filter: blur(10px); }
    50% { -webkit-filter: blur(5px); -moz-filter: blur(5px); -ms-filter: blur(5px); filter: blur(5px); }
    100% { -webkit-filter: blur(0px); -moz-filter: blur(0px); -ms-filter: blur(0px); filter: blur(0px); }
}

.div img {
border-radius: 4px; /*圆角*/
box-shadow: 10px 7px 13px #888885; /*立体感 阴影*/ 
-webkit-animation-name: blur; /*动画名称*/ 
-webkit-animation-duration: 3s; /*动画持续时间*/ 
-webkit-animation-iteration-count: 1; /*动画次数*/ 
-webkit-animation-delay: 0s; /*延迟时间*/
}
.div img:hover  {
-webkit-filter: grayscale(100%); /*鼠标经过变黑白*/
}
点击展开查看更多

白嫖大佬的文章:清墨的橙

版权声明

作者: JunYan`Blog

链接: https://www.jinjun.top/posts/33/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

评论

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键