css板块合在一起的特效,纯CSS3液态胶合效果环形菜单特效

到此我们效果全部完成了,以下去全部源码↓

Document

* {

margin: 0;

padding: 0;

}

body {

background-color: #000;

}

.wrap {

position: relative;

width: 230px;

height: 250px;

border: 1px solid red;

margin: 50px auto;

}

.wrap label {

position: absolute;

left: 0px;

top: 10px;

width: 70px;

height: 70px;

background-color: #f44336;

text-align: center;

border-radius: 35px;

/* font-size:0; */

line-height: 1;

}

.wrap label i {

display: inline-block;

width: 40px;

height: 6px;

background-color: #fff;

border-radius: 4px;

}

.wrap input {

display: none;

}

.wrap .blob {

position: absolute;

left: 10px;

top: 10px;

width: 50px;

height: 50px;

border-width: 0;

background-color: #f44336;

outline: none;

font-size: 30px;

border-radius: 25px;

transition: 0.5s;

}

.wrap input:checked ~ .blob {

background-color: #fff;

color: #888;

}

.wrap input:checked ~ .blob:nth-of-type(1) {

left: 100px;

top: 35px;

}

.wrap input:checked ~ .blob:nth-of-type(2) {

left: 65px;

top: 85px;

}

.wrap input:checked ~ .blob:nth-of-type(3) {

left: 15px;

top: 120px;

}

.wrap input:checked ~ .blob:nth-of-type(4) {

left: 180px;

top: 45px;

}

.wrap input:checked ~ .blob:nth-of-type(5) {

left: 160px;

top: 100px;

}

.wrap input:checked ~ .blob:nth-of-type(6) {

left: 120px;

top: 145px;

}

.wrap input:checked ~ .blob:nth-of-type(7) {

left: 70px;

top: 180px;

}

.wrap input:checked ~ .blob:nth-of-type(8) {

left: 15px;

top: 200px;

}

202545175_8_20200918104631352END202545175_9_20200918104631384202545175_8_20200918104631352

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值