mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
45 lines
773 B
HTML
45 lines
773 B
HTML
|
|
<a href="#" class="btn"> Click Me</a>
|
|
<style>
|
|
/* From Uiverse.io by Zena4L - Tags: button */
|
|
.btn:link,
|
|
.btn:visited {
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
color: rgb(27, 27, 27);
|
|
padding: 10px 30px;
|
|
border: 1px solid;
|
|
border-radius: 1000px;
|
|
display: inline-block;
|
|
transition: all .2s;
|
|
position: relative;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 20px rgba(27, 27, 27, .5);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.btn::after {
|
|
content: "";
|
|
display: inline-block;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 100px;
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
z-index: -1;
|
|
transition: all .3s;
|
|
}
|
|
|
|
.btn:hover::after {
|
|
background-color: rgb(0, 238, 255);
|
|
transform: scaleX(1.4) scaleY(1.5);
|
|
opacity: 0;
|
|
}
|
|
</style>
|