mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
43 lines
702 B
HTML
43 lines
702 B
HTML
<button>
|
|
INPUT
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by 212004ALJI - Tags: button */
|
|
button {
|
|
/* padding: 5px 10px; */
|
|
height: 50px;
|
|
width: 100px;
|
|
font-size: 20px;
|
|
position: relative;
|
|
border: navajowhite;
|
|
background-color: #222;
|
|
color: aliceblue;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
transition: all 0.3s;
|
|
box-shadow: 2px 2px 2px red;
|
|
}
|
|
|
|
button::before {
|
|
content: '';
|
|
height: 10px;
|
|
width: 30px;
|
|
position: absolute;
|
|
background-image: linear-gradient(45deg, salmon,red);
|
|
left: -10px;
|
|
top: 0;
|
|
z-index: -1;
|
|
transition: 0.3s ease-in-out;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
button:hover::before {
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
|
|
button:hover {
|
|
border-radius: 5px;
|
|
}
|
|
|
|
</style>
|