mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
39 lines
No EOL
741 B
HTML
39 lines
No EOL
741 B
HTML
<button class="button">Hover Over Me</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by RichestsoftSukhbir - Tags: simple, minimalist, white, black, button, hover, hover effect, hover button */
|
|
.button {
|
|
padding: 12px 25px;
|
|
background: #fff;
|
|
border: 1px solid #121212;
|
|
color: #121212;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
border-radius: 50px;
|
|
position: relative;
|
|
z-index: 2;
|
|
overflow: hidden;
|
|
transition: all 0.5s ease;
|
|
}
|
|
.button::after {
|
|
content: "";
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #121212;
|
|
position: absolute;
|
|
bottom: -100%;
|
|
left: 0;
|
|
border-radius: 50%;
|
|
z-index: -1;
|
|
transition: all 0.5s ease;
|
|
}
|
|
.button:hover {
|
|
color: #fff;
|
|
}
|
|
.button:hover::after {
|
|
bottom: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
</style>
|
|
|