mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
67 lines
1.2 KiB
HTML
67 lines
1.2 KiB
HTML
<button>
|
|
<a href="#" class="btn2"><span class="spn2">HELLO !</span></a>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by TISEPSE - Tags: material design, button, css effect */
|
|
.btn2 {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 15px 30px;
|
|
border: 2px solid #fefefe;
|
|
text-transform: uppercase;
|
|
color: #fefefe;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.btn2::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -2px;
|
|
left: -2px;
|
|
width: calc(100% + 4px);
|
|
height: calc(100% - -2px);
|
|
background-color: #212121;
|
|
transition: 0.3s ease-out;
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
.btn2::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -2px;
|
|
left: -2px;
|
|
width: calc(100% + 4px);
|
|
height: calc(100% - 50px);
|
|
background-color: #212121;
|
|
transition: 0.3s ease-out;
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
.btn2:hover::before {
|
|
transform: translateY(-25px);
|
|
height: 0;
|
|
}
|
|
|
|
.btn2:hover::after {
|
|
transform: scaleX(0);
|
|
transition-delay: 0.15s;
|
|
}
|
|
|
|
.btn2:hover {
|
|
border: 2px solid #fefefe;
|
|
}
|
|
|
|
.btn2 span {
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
button {
|
|
text-decoration: none;
|
|
border: none;
|
|
background-color: transparent;
|
|
}
|
|
</style>
|