mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
56 lines
1.2 KiB
HTML
56 lines
1.2 KiB
HTML
<button class="primary-button">
|
|
Primary button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by ArturCodeCraft - Tags: button, hover, btn, hover effect, hoverme, hover button, diia, Primary button */
|
|
/* <reset-style> ============================ */
|
|
button {
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
/* <main-style> ============================ */
|
|
.primary-button {
|
|
min-width: 111px;
|
|
height: 56px;
|
|
border-radius: 40px;
|
|
background: #000;
|
|
padding: 16px 40px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
letter-spacing: -0.32px;
|
|
transition: background .2s ease-in-out, color .2s ease-in-out;
|
|
position: relative;
|
|
}
|
|
|
|
.primary-button::before {
|
|
content: '';
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 40px;
|
|
background: linear-gradient(69deg, #c3aab2 -4.77%, #9ec 46.72%, #80c0c8 90.23%, #4B8bfa 134.46%);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
z-index: -1;
|
|
transition: opacity .2s ease-in-out;
|
|
}
|
|
|
|
.primary-button:hover {
|
|
background: transparent;
|
|
color: #000;
|
|
}
|
|
|
|
.primary-button:hover::before {
|
|
opacity: 1;
|
|
}
|
|
</style>
|