欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

html div阴影向上,css3阴影向上缓动样式

发布时间:2024/10/14 编程问答 31 豆豆
生活随笔 收集整理的这篇文章主要介绍了 html div阴影向上,css3阴影向上缓动样式 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

html

沉迷工作不能自拔,这是病,得治

css

.article-box {

width: 216px;

height: 200px;

border: 1px solid #f0f0f0;

float: left;

margin-right: 30px;

margin-bottom: 30px;

}

.article-box:hover {

box-shadow: 0 5px 15px rgba(45,50,55,.2);

-webkit-transform: translateY(-5px);

-moz-transform: translateY(-5px);

-o-transform: translateY(-5px);

-ms-transform: translateY(-5px);

transform: translateY(-5px);

}

.transition {

-webkit-transition: all .2s ease-out;

-moz-transition: all .2s ease-out;

-ms-transition: all .2s ease-out;

-o-transition: all .2s ease-out;

transition: all .2s ease-out;

}

总结

以上是生活随笔为你收集整理的html div阴影向上,css3阴影向上缓动样式的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。