mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
108 lines
1.7 KiB
HTML
108 lines
1.7 KiB
HTML
<button>
|
|
<span class="span-mother">
|
|
<span>B</span>
|
|
<span>u</span>
|
|
<span>t</span>
|
|
<span>t</span>
|
|
<span>o</span>
|
|
<span>n</span>
|
|
</span>
|
|
<span class="span-mother2">
|
|
<span>B</span>
|
|
<span>u</span>
|
|
<span>t</span>
|
|
<span>t</span>
|
|
<span>o</span>
|
|
<span>n</span>
|
|
</span>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by KINGFRESS - Tags: button */
|
|
button {
|
|
font-weight: bold;
|
|
color: white;
|
|
border-radius: 2rem;
|
|
width: 95.02px;
|
|
height: 42.66px;
|
|
border: none;
|
|
background-color: #3653F8;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
button .span-mother {
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button:hover .span-mother {
|
|
position: absolute;
|
|
}
|
|
|
|
button:hover .span-mother span {
|
|
transform: translateY(1.2em);
|
|
}
|
|
|
|
button .span-mother span:nth-child(1) {
|
|
transition: .2s;
|
|
}
|
|
|
|
button .span-mother span:nth-child(2) {
|
|
transition: .3s;
|
|
}
|
|
|
|
button .span-mother span:nth-child(3) {
|
|
transition: .4s;
|
|
}
|
|
|
|
button .span-mother span:nth-child(4) {
|
|
transition: .5s;
|
|
}
|
|
|
|
button .span-mother span:nth-child(5) {
|
|
transition: .6s;
|
|
}
|
|
|
|
button .span-mother span:nth-child(6) {
|
|
transition: .7s;
|
|
}
|
|
|
|
button .span-mother2 {
|
|
display: flex;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button .span-mother2 span {
|
|
transform: translateY(-1.2em);
|
|
}
|
|
|
|
button:hover .span-mother2 span {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
button .span-mother2 span {
|
|
transition: .2s;
|
|
}
|
|
|
|
button .span-mother2 span:nth-child(2) {
|
|
transition: .3s;
|
|
}
|
|
|
|
button .span-mother2 span:nth-child(3) {
|
|
transition: .4s;
|
|
}
|
|
|
|
button .span-mother2 span:nth-child(4) {
|
|
transition: .5s;
|
|
}
|
|
|
|
button .span-mother2 span:nth-child(5) {
|
|
transition: .6s;
|
|
}
|
|
|
|
button .span-mother2 span:nth-child(6) {
|
|
transition: .7s;
|
|
}
|
|
</style>
|