html5 按钮重叠,HTML5 CSS3按钮悬停时的分层重影(错位堆叠)动画特效

CSS

语言:

CSSSCSS

确定

html,

body {

height: 100%;

margin: 0;

}

body {

display: flex;

justify-content: center;

align-items: center;

background-image: url("https://image.ibb.co/icbLMF/ep_naturalblack.png");

}

.btn-wrapper {

width: 290px;

height: 110px;

position: relative;

margin: 40px auto 0;

}

.btn-wrapper:hover .btn-inner {

top: -4px;

transform: scale(1, 1);

cursor: pointer;

}

.btn-wrapper__container {

border-bottom: 2px solid #15B5E2;

position: absolute;

width: 100%;

height: 80px;

}

.btn-wrapper__container:before,

.btn-wrapper__container:after {

border-bottom: 2px solid #15B5E2;

width: 96%;

left: 2%;

bottom: -8px;

content: "";

position: absolute;

}

.btn-wrapper__container:after {

width: 92%;

left: 4%;

bottom: -14px;

}

.btn-wrapper__container .btn-inner {

width: 104.2%;

height: 100%;

position: absolute;

top: 20px;

left: -2.1%;

border: 2px solid #15B5E2;

box-sizing: border-box;

display: flex;

justify-content: center;

align-items: center;

font-family: 'Source Code Pro', monospace;

letter-spacing: 1px;

text-transform: uppercase;

font-size: 18px;

background: #10131C;

transform: scale(0.96, 0.96);

transition: all .3s;

z-index: 4;

}

.btn-wrapper__container .btn-inner__text {

text-decoration: none;

color: #15B5E2;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值