mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
40 lines
650 B
HTML
40 lines
650 B
HTML
<button class="btn">
|
|
Diagonal Swipe
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by SujitAdroja - Tags: button */
|
|
.btn {
|
|
color: purple;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
border: 2px solid purple;
|
|
padding: 10px 20px;
|
|
font-size: 17px;
|
|
font-weight: bold;
|
|
background: transparent;
|
|
position: relative;
|
|
transition: all 1s;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn:hover {
|
|
color: white;
|
|
}
|
|
|
|
.btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 0%;
|
|
top: 0;
|
|
left: -40px;
|
|
transform: skewX(45deg);
|
|
background-color: purple;
|
|
z-index: -1;
|
|
transition: all 1s;
|
|
}
|
|
|
|
.btn:hover::before {
|
|
width: 160%;
|
|
}
|
|
</style>
|