mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
53 lines
874 B
HTML
53 lines
874 B
HTML
<button class="my-button">
|
|
Click me!
|
|
</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by rohan-krishu - Tags: button */
|
|
.my-button {
|
|
background-color: blueviolet;
|
|
border: none;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
border-radius: 5px;
|
|
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.my-button:after {
|
|
content: "";
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 5px;
|
|
height: 5px;
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
opacity: 0;
|
|
}
|
|
|
|
.my-button:hover:after {
|
|
animation: ripple_401 1s ease-out;
|
|
}
|
|
|
|
@keyframes ripple_401 {
|
|
0% {
|
|
width: 5px;
|
|
height: 5px;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
width: 200px;
|
|
height: 200px;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
</style>
|