html图片颜色填充,CSS3 页面滚动时填充图标颜色

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Signika);

*, *:after, *:before {

-moz-box-sizing: border-box;

box-sizing: border-box; }

html {

height: 100%; }

body {

color: white;

height: 100%;

background: #3e253c;

font-size: 16px;

font-family: 'Signika', sans-serif; }

body:before, body:after {

content: '';

position: fixed;

width: 89.8%;

max-width: 1170px;

left: 50%;

-webkit-transform: translateX(-50%);

-ms-transform: translateX(-50%);

transform: translateX(-50%);

right: auto;

height: 50%;

z-index: -1; }

body:before {

top: 0;

background-color: #f4bd89;

-webkit-transition: all 0.8s;

transition: all 0.8s; }

body:after {

top: 50%;

background-color: #71495b; }

h1, h2, p {

margin-bottom: 20px; }

h1 {

font-size: 3em; }

h2 {

font-size: 2.3em; }

p {

font-size: 1.25em; }

header {

position: relative;

background-color: #3e253c;

height: 50%;

text-align: center; }

.contain li {

position: relative;

z-index: 2;

min-height: 525px;

margin-left: 420px;

background-color: #3e253c;

padding: 6em 2em; }

.contain li:before, .contain li:after {

content: '';

position: absolute;

width: 420px;

right: 100%;

z-index: 2; }

.contain li:before {

top: 0;

height: 325px;

background-repeat: no-repeat; }

.contain li:after {

top: 325px;

bottom: 0;

background-image: url(http://codyhouse.co/demo/icons-filling-effect/img/cd-pattern-large.svg); }

.icon-1:before {

background-image: url(http://codyhouse.co/demo/icons-filling-effect/img/cd-icon-1-large.svg); }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值