mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
43 lines
794 B
HTML
43 lines
794 B
HTML
<button> Click me!
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by alexroumi - Tags: button */
|
|
button {
|
|
padding: 15px 25px;
|
|
border: unset;
|
|
border-radius: 15px;
|
|
color: #212121;
|
|
z-index: 1;
|
|
background: #e8e8e8;
|
|
position: relative;
|
|
font-weight: 1000;
|
|
font-size: 17px;
|
|
-webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
|
|
box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
|
|
transition: all 250ms;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 0;
|
|
border-radius: 15px;
|
|
background-color: #212121;
|
|
z-index: -1;
|
|
-webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
|
|
box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
|
|
transition: all 250ms
|
|
}
|
|
|
|
button:hover {
|
|
color: #e8e8e8;
|
|
}
|
|
|
|
button:hover::before {
|
|
width: 100%;
|
|
}
|
|
</style>
|