mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
53 lines
904 B
HTML
53 lines
904 B
HTML
<button class="button">
|
|
<span>Hover</span>
|
|
</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by irfnmdlptra - Tags: button */
|
|
.button {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 12px 30px;
|
|
font-size: 18px;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
border-radius: 40px;
|
|
background: linear-gradient(45deg, #FF0080, #FF8C00);
|
|
color: #fff;
|
|
border: none;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
}
|
|
|
|
.button:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 0;
|
|
height: 0;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 100%;
|
|
z-index: -1;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
.button:hover:before {
|
|
width: 500px;
|
|
height: 500px;
|
|
}
|
|
|
|
.button span {
|
|
position: relative;
|
|
z-index: 2;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.button:hover span {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
</style>
|