mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
71 lines
1 KiB
HTML
71 lines
1 KiB
HTML
<button>
|
|
<div>
|
|
<span>
|
|
<p>Hover Me</p><p>:)</p>
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<span>
|
|
<p>Thanks</p><p>:D</p>
|
|
</span>
|
|
</div>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by Sergestra - Tags: button */
|
|
button {
|
|
outline: 0;
|
|
border: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
max-width: 140px;
|
|
height: 50px;
|
|
border-radius: 0.5em;
|
|
box-shadow: 0 0.625em 1em 0 rgba(30, 143, 255, 0.35);
|
|
overflow: hidden;
|
|
}
|
|
|
|
button div {
|
|
transform: translateY(0px);
|
|
width: 100%;
|
|
}
|
|
|
|
button,
|
|
button div {
|
|
transition: 0.6s cubic-bezier(.16,1,.3,1);
|
|
}
|
|
|
|
button div span {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 50px;
|
|
padding: 0.75em 1.125em;
|
|
}
|
|
|
|
button div:nth-child(1) {
|
|
background-color: #1e90ff;
|
|
}
|
|
|
|
button div:nth-child(2) {
|
|
background-color: #21dc62;
|
|
}
|
|
|
|
button:hover {
|
|
box-shadow: 0 0.625em 1em 0 rgba(33, 220, 98, 0.35);
|
|
}
|
|
|
|
button:hover div {
|
|
transform: translateY(-50px);
|
|
}
|
|
|
|
button p {
|
|
font-size: 17px;
|
|
font-weight: bold;
|
|
color: #ffffff;
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
</style>
|