mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
43 lines
857 B
HTML
43 lines
857 B
HTML
<button class="btn-hover">HOVER ME</button>
|
|
<style>
|
|
/* From Uiverse.io by Nayzerftn - Tags: button, hover, active */
|
|
.btn-hover {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 15px 30px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
color: #ffffff;
|
|
background-color: #4b4b4b;
|
|
border: none;
|
|
outline: none;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease-out;
|
|
}
|
|
|
|
.btn-hover:hover {
|
|
background-color: #522ba7;
|
|
}
|
|
|
|
.btn-hover::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) scale(0);
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
opacity: 0.8;
|
|
transition: all 0.5s ease-out;
|
|
}
|
|
|
|
.btn-hover:hover::before {
|
|
transform: translate(-50%, -50%) scale(20);
|
|
opacity: 0;
|
|
}
|
|
</style>
|