mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
57 lines
1 KiB
HTML
57 lines
1 KiB
HTML
<div class="card"></div>
|
|
<style>
|
|
/* From Uiverse.io by JaydipPrajapati1910 - Tags: black, gradient, card */
|
|
.card {
|
|
width: 190px;
|
|
height: 254px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 0px 15px;
|
|
background-color: red;
|
|
border-radius: 10px;
|
|
border: none;
|
|
color: white;
|
|
position: relative;
|
|
cursor: pointer;
|
|
font-weight: 900;
|
|
transition-duration: .2s;
|
|
background: linear-gradient(0deg, #000, #272727);
|
|
}
|
|
|
|
.card:before, .card:after {
|
|
content: '';
|
|
position: absolute;
|
|
left: -2px;
|
|
top: -2px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000, #fb0094,
|
|
#0000ff, #00ff00,#ffff00, #ff0000);
|
|
background-size: 400%;
|
|
width: calc(100% + 4px);
|
|
height: calc(100% + 4px);
|
|
z-index: -1;
|
|
animation: steam 20s linear infinite;
|
|
}
|
|
|
|
@keyframes steam {
|
|
0% {
|
|
background-position: 0 0;
|
|
}
|
|
|
|
50% {
|
|
background-position: 400% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: 0 0;
|
|
}
|
|
}
|
|
|
|
.card:after {
|
|
filter: blur(100px);
|
|
}
|
|
|
|
|
|
</style>
|