mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
42 lines
668 B
HTML
42 lines
668 B
HTML
<button> Hover me
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by nikk7007 - Tags: button */
|
|
button {
|
|
padding: 0.8em 1.8em;
|
|
border: 2px solid #17C3B2;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-color: transparent;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
font-size: 16px;
|
|
transition: .3s;
|
|
z-index: 1;
|
|
font-family: inherit;
|
|
color: #17C3B2;
|
|
}
|
|
|
|
button::before {
|
|
content: '';
|
|
width: 0;
|
|
height: 300%;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) rotate(45deg);
|
|
background: #17C3B2;
|
|
transition: .5s ease;
|
|
display: block;
|
|
z-index: -1;
|
|
}
|
|
|
|
button:hover::before {
|
|
width: 105%;
|
|
}
|
|
|
|
button:hover {
|
|
color: #111;
|
|
}
|
|
|
|
</style>
|