mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
63 lines
1.1 KiB
HTML
63 lines
1.1 KiB
HTML
<button>
|
|
Hover
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by ozgeozkaraa01 - Tags: button */
|
|
button {
|
|
border: none;
|
|
padding: 0.8em 2.5em;
|
|
outline: none;
|
|
color: white;
|
|
font-style: 1.2em;
|
|
position: relative;
|
|
z-index: 1;
|
|
cursor: pointer;
|
|
background: none;
|
|
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
button::before,
|
|
button::after {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
border-radius: 10em;
|
|
-webkit-transform: translateX(-50%) translateY(-50%);
|
|
transform: translateX(-50%) translateY(-50%);
|
|
width: 105%;
|
|
height: 105%;
|
|
content: "";
|
|
z-index: -2;
|
|
background-size: 400% 400%;
|
|
background: linear-gradient(
|
|
100deg,
|
|
#f79533,
|
|
#f37055,
|
|
#ef4e7b,
|
|
#a166ab,
|
|
#5073b8,
|
|
#1098ad,
|
|
#07b39b,
|
|
#6fba82
|
|
);
|
|
}
|
|
|
|
button::before {
|
|
-webkit-filter: blur(7px);
|
|
filter: blur(7px);
|
|
-webkit-transition: all 0.25s ease;
|
|
transition: all 0.25s ease;
|
|
-webkit-animation: pulse 10s infinite ease;
|
|
animation: pulse 10s infinite ease;
|
|
}
|
|
|
|
button::after {
|
|
-webkit-filter: blur(0.3px);
|
|
filter: blur(0.3px);
|
|
}
|
|
|
|
button:hover::before {
|
|
width: 115%;
|
|
height: 115%;
|
|
}
|
|
</style>
|