mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
48 lines
838 B
HTML
48 lines
838 B
HTML
<button>
|
|
Hover Me
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by mi-series - Tags: minimalist, button, minimal */
|
|
button {
|
|
width: 160px;
|
|
line-height: 40px;
|
|
font-weight: 500px;
|
|
font-size: 17px;
|
|
letter-spacing: 2px;
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
padding: 0;
|
|
background: #FBEAEB;
|
|
position: relative;
|
|
z-index: 2;
|
|
color: #FBEAEB;
|
|
perspective: 300px;
|
|
transform-style: preserve-3d;
|
|
border-radius: 6px;
|
|
border: none;
|
|
}
|
|
|
|
button:hover {
|
|
color: #2F3C7E;
|
|
}
|
|
|
|
button::after {
|
|
position: absolute;
|
|
content: "";
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-weight: 500px;
|
|
background: #2F3C7E;
|
|
border-radius: 6px;
|
|
z-index: -1;
|
|
transform-origin: center bottom;
|
|
transform: rotateX(0);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
button:hover::after {
|
|
transform: rotateX(-180deg);
|
|
}
|
|
</style>
|