galaxy/Cards/KhaledMatalkah_slippery-stingray-30.html

67 lines
1.3 KiB
HTML

<div class="card"></div>
<style>
/* From Uiverse.io by KhaledMatalkah - Tags: card, hover, animated */
.card {
width: 254px;
height: 300px;
background: linear-gradient(180deg, #5b1577, #a52585);
border-radius: 10%;
box-shadow: -35px 35px 70px #891883, 10px -35px 70px #db26db;
position: relative;
overflow: hidden;
transition: transform 0.3s ease;
animation: shadowAnimation 5s infinite ease-in-out;
}
@keyframes shadowAnimation {
0% {
box-shadow: -35px 35px 70px #ca21ae, 10px -35px 70px #ca21ae;
}
50% {
box-shadow: -20px 10px 50px #bd3fa2, 0 -20px 50px #b9317c;
}
100% {
box-shadow: -35px 35px 70px #ca27af, 10px -35px 70px #bd3fa2;
}
}
.card::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 150px;
height: 150px;
background: radial-gradient(circle, #68057c, #a52574);
border-radius: 50%;
opacity: 0.6;
transition: opacity 0.3s ease;
}
.card::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
background: radial-gradient(circle, #b700ff, #be268b, transparent);
border-radius: 50%;
opacity: 0.2;
transition: opacity 0.3s ease;
}
.card:hover {
transform: scale(1.1);
}
.card:hover::before,
.card:hover::after {
opacity: 1;
}
</style>