mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
47 lines
716 B
HTML
47 lines
716 B
HTML
<button>
|
|
Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by yaasiinaxmed - Tags: button */
|
|
button {
|
|
--color: #0077ff;
|
|
font-family: inherit;
|
|
display: inline-block;
|
|
width: 6em;
|
|
height: 2.6em;
|
|
line-height: 2.5em;
|
|
overflow: hidden;
|
|
margin: 20px;
|
|
font-size: 17px;
|
|
z-index: 1;
|
|
color: var(--color);
|
|
border: 2px solid var(--color);
|
|
border-radius: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
button::before {
|
|
position: absolute;
|
|
content: "";
|
|
background: var(--color);
|
|
width: 150px;
|
|
height: 200px;
|
|
z-index: -1;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
button:hover {
|
|
color: white;
|
|
}
|
|
|
|
button:before {
|
|
top: 100%;
|
|
left: 100%;
|
|
transition: .3s all;
|
|
}
|
|
|
|
button:hover::before {
|
|
top: -30px;
|
|
left: -30px;
|
|
}
|
|
</style>
|