分享自定义 CSS:简化元素,随机背景淡出

2015-02-06 03:42:27 +08:00
 kamil

今天看了两个分享 自定义 CSS 的主题

V2EX 极简自定义 CSS : LIGHTER

V2EX 自定义 css,随机背景图片

把它们结合了下,然后增加了背景图片的淡出,自己用了半天感觉还不错,分享出来大家有兴趣的试试

@import url("//jkjoke.b0.upaiyun.com/css/v2ex.css");
body { background-color: #efefef; background-image: url(https://unsplash.it/1600/900?random); background-repeat: no-repeat; background-attachment: fixed; background-position: center 0; background-size: cover; }
#Wrapper{ background-color: transparent; animation-delay: 2s; -webkit-animation-delay: 2s; animation: fadein 5s; -webkit-animation: fadein 5s; }
@-webkit-keyframes fadein { from { background-color: rgba(239, 239, 239, 255); } to { background-color: rgba(239, 239, 239, 0); } }
@keyframes fadein { from { background-color: rgba(239, 239, 239, 255); } to { background-color: rgba(239, 239, 239, 0); } }
#Main, #Top, #Rightbar { opacity: 0.95; }
3604 次点击
所在节点    分享创造
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/168669

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX