galaxy/Buttons/Peary74_cuddly-gecko-61.html

75 lines
1.3 KiB
HTML

<div class="del">
<div>
Hover
</div>
</div>
<style>
/* From Uiverse.io by Peary74 - Tags: button, hover, hover button */
.del {
position: relative;
top: 0;
left: 0;
width: 160px;
height: 50px;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.del div {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: none;
box-shadow: 4px 4px 6px 0 rgba(255,255,255,.5),
-4px -4px 6px 0 rgba(116, 125, 136, .5),
inset -4px -4px 6px 0 rgba(255,255,255,.2),
inset 4px 4px 6px 0 rgba(0, 0, 0, .4);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
letter-spacing: 1px;
color: #000;
z-index: 1;
transition: .6s;
}
.del:hover div {
letter-spacing: 4px;
color: #fff;
}
.del::after,
.del::before {
content: '';
position: absolute;
bottom: 0;
right: 0;
z-index: -99999;
transition: all .4s;
}
.del::after {
transform: translate(15px, 15px);
width: 35px;
height: 35px;
background: #000;
backdrop-filter: blur(5px);
border-radius: 10px;
}
.del:hover::after {
border-radius: 10px;
transform: translate(0, 0);
width: 100%;
height: 100%;
}
</style>