mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
65 lines
1 KiB
HTML
65 lines
1 KiB
HTML
<div class="card">
|
|
<div class="card-info">
|
|
<p class="title">Magic Card</p>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by alexruix - Tags: gradient, card */
|
|
.card {
|
|
--background: linear-gradient(to left, #f7ba2b 0%, #ea5358 100%);
|
|
width: 190px;
|
|
height: 254px;
|
|
padding: 5px;
|
|
border-radius: 1rem;
|
|
overflow: visible;
|
|
background: #f7ba2b;
|
|
background: var(--background);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.card::after {
|
|
position: absolute;
|
|
content: "";
|
|
top: 30px;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: -1;
|
|
height: 100%;
|
|
width: 100%;
|
|
transform: scale(0.8);
|
|
filter: blur(25px);
|
|
background: #f7ba2b;
|
|
background: var(--background);
|
|
transition: opacity .5s;
|
|
}
|
|
|
|
.card-info {
|
|
--color: #181818;
|
|
background: var(--color);
|
|
color: var(--color);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: visible;
|
|
border-radius: .7rem;
|
|
}
|
|
|
|
.card .title {
|
|
font-weight: bold;
|
|
letter-spacing: .1em;
|
|
}
|
|
|
|
/*Hover*/
|
|
.card:hover::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
.card:hover .card-info {
|
|
color: #f7ba2b;
|
|
transition: color 1s;
|
|
}
|
|
|
|
</style>
|