mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
40 lines
728 B
HTML
40 lines
728 B
HTML
<button>
|
|
Button
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by aboalsim114 - Tags: button */
|
|
button {
|
|
position: relative;
|
|
background-color: rgb(230, 34, 77);
|
|
border-radius: 5px;
|
|
box-shadow: rgb(121, 18, 55) 0px 4px 0px 0px;
|
|
padding: 15px;
|
|
background-repeat: no-repeat;
|
|
box-sizing: border-box;
|
|
width: 154px;
|
|
height: 49px;
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 20px;
|
|
transition: all .3s ease-in-out;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button::before {
|
|
content: "";
|
|
background-color: rgb(248, 50, 93);
|
|
width: 0;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
transition: width 700ms ease-in-out;
|
|
display: inline-block;
|
|
}
|
|
|
|
button:hover::before {
|
|
width: 100%;
|
|
}
|
|
</style>
|