html制作水晶状态导航栏,HTML5 CSS3水晶风格的页面头部

CSS

语言:

CSSSCSS

确定

body {

margin: 0;

padding: 0;

}

.crystal_container {

position: relative;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

width: 100%;

height: 400px;

background: radial-gradient(at top left, rgb(0, 188, 212), rgb(3, 169, 244));

z-index: -999;

}

.block {

width: 198px;

height: 198px;

display: block;

background: radial-gradient(at top left, #FFCC4D, #FF9800);

border-top: 1px solid #ffcc80;

border-left: 1px solid #ffcc80;

border-right: 1px solid #bb8020;

border-bottom: 1px solid #bb8020;

box-shadow: 2px 2px 6px rgba(170, 31, 0, 0.2), 3px 8px 12px rgba(71, 35, 22, 0.3);

z-index: 999;

margin: 100px auto;

}

.text {

margin-left: 17px;

font-family: "Roboto Slab", serif;

font-weight: bold;

font-size: 24px;

line-height: 22px;

}

.crystal {

width: 0;

height: 0;

position: absolute;

z-index: -998;

}

#c01 {

border-bottom: 100px solid rgba(0, 96, 100, 0.1);

border-right: 100vw solid transparent;

bottom: 0;

right: 0;

}

#c02 {

border-bottom: 160px solid rgba(2, 136, 209, 0.3);

border-left: 100vw solid transparent;

bottom: 0;

left: 0;

}

#c03 {

border-top: 200px solid rgba(0, 96, 155, 0.2);

border-right: 40vw solid transparent;

border-left: 60vw solid transparent;

top: 0;

right: 0;

}

#c04 {

border-top: 400px solid rgba(24, 255, 255, 0.3);

border-right: 80vw solid transparent;

border-left: 20vw solid transparent;

top: 0;

left: 0;

}

#c05 {

border-bottom: 250px solid transparent;

border-top: 100px solid transparent;

border-right: 100vw solid rgba(128, 216, 255, 0.3);

bottom: 10px;

right: 0;

}

#c06 {

border-bottom: 400px solid rgba(79, 195, 247, 0.4);

border-right: 10vw solid transparent;

border-left: 30vw solid transparent;

bottom: 0;

right: 20vw;

}

#c07 {

border-top: 367px solid rgba(0, 131, 143, 0.2);

border-left: 60vw solid transparent;

top: 0;

right: 0;

}

#c08 {

border-top: 50px solid rgba(167, 255, 235, 0.4);

border-right: 60vw solid transparent;

top: 0;

left: 0;

}

#c09 {

border-top: 400px solid rgba(0, 176, 255, 0.3);

border-right: 30vw solid transparent;

top: 0;

left: 0;

}

#c10 {

border-bottom: 400px solid rgba(128, 222, 234, 0.2);

border-right: 20vw solid transparent;

border-left: 20vw solid transparent;

bottom: 0;

right: 60vw;

}

/* Description */

.description {

max-width: 500px;

margin: 40px auto 80px;

}

.description h2 {

font-family: "Roboto Slab", serif;

}

.description p {

font-family: sans-serif;

font-weight: lighter;

line-height: 24px;

text-align: justify;

}

/* Credits */

/*Designed by Brendan Bax ~ www.brendanbax.com*/

.credits {

display: flex;

flex-direction: row;

justify-content: center;

align-items: center;

position: fixed;

bottom: 0;

width: 100%;

height: 60px;

font-family: "Roboto Slab", serif;

background: #fff;

box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);

}

a {

text-decoration: none;

color: #32ceea;

}

.credits_left {

display: block;

position: absolute;

left: 20px;

}

.credits_right {

display: block;

position: absolute;

right: 20px;

}

.social_icon {

display: inline-block;

width: 32px;

height: 32px;

margin: 8px;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值