css 圆形光晕,CSS3 简单的多重圆形光晕动效

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:300);

body,

html {

margin: 0;

width: 100vw;

height: 100vh;

font-family: "Source Sans Pro" sans-serif;

}

.button__holder {

position: relative;

width: 100%;

height: 100%;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-wrap: wrap;

-ms-flex-wrap: wrap;

flex-wrap: wrap;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

background-color: #1a1a1a;

}

.button__holder:after {

content: "";

position: absolute;

z-index: 0;

top: 0;

right: 0;

bottom: 0;

left: 0;

background: rgba(26, 26, 26, 0.7);

}

.button__holder h2 {

margin-right: 1em;

text-align: center;

color: #8a3b58;

}

.plus {

position: relative;

z-index: 1;

width: 80px;

height: 80px;

color: #1a1a1a;

background: #ed1c5b;

border-radius: 50%;

border: none;

-webkit-transition: box-shadow 400ms cubic-bezier(0.2, 0, 0.7, 1), -webkit-transform 200ms cubic-bezier(0.2, 0, 0.7, 1);

transition: box-shadow 400ms cubic-bezier(0.2, 0, 0.7, 1), transform 200ms cubic-bezier(0.2, 0, 0.7, 1);

}

.plus:after {

content: "+";

font-size: 2.5em;

line-height: 1.1em;

}

.plus:hover {

-webkit-transform: rotate(45deg);

-ms-transform: rotate(45deg);

transform: rotate(45deg);

box-shadow: 0 0 1px 15px rgba(138, 59, 88, 0.4), 0 0 1px 30px rgba(138, 59, 88, 0.1), 0 0 1px 45px rgba(138, 59, 88, 0.1);

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值