mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
60 lines
1.1 KiB
HTML
60 lines
1.1 KiB
HTML
<button class="space-button">
|
|
<span>Explore space</span>
|
|
<svg viewBox="0 0 24 24">
|
|
<path d="M5.5 16.5l5-5-5-5"></path>
|
|
<path d="M11 11h8v2h-8z"></path>
|
|
<path d="M16.5 7.5l5-5-5-5"></path>
|
|
<path d="M19 4v8h-2v-8z"></path>
|
|
</svg>
|
|
</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by BHARGAVPATEL1244 - Tags: button */
|
|
.space-button {
|
|
display: inline-block;
|
|
background-color: #111;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 30px;
|
|
padding: 12px 32px;
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.space-button span {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.space-button svg {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 12px;
|
|
transform: translateY(-50%);
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: #fff;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.space-button:hover {
|
|
background-color: #f8f8f8;
|
|
color: #111;
|
|
}
|
|
|
|
.space-button:hover svg {
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.space-button:active {
|
|
background-color: #f94b4c;
|
|
color: #fff;
|
|
}
|
|
|
|
</style>
|