mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
41 lines
848 B
HTML
41 lines
848 B
HTML
<button class="button">
|
|
Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by KhaledMatalkah - Tags: button, hover */
|
|
.button {
|
|
background: transparent;
|
|
color: #fff;
|
|
padding: 10px 20px;
|
|
font-size: 18px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
backdrop-filter: blur(5px);
|
|
transition: background-color 0.3s ease-in-out;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.button:before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease-in-out;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.button:hover:before {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
</style>
|