body {
margin: 0;
height: 100vh;
display: grid;
place-items: center;
background: #0b1020;
}
.scene {
width: 260px;
height: 260px;
display: grid;
place-items: center;
filter: drop-shadow(0 25px 60px rgba(0, 255, 200, 0.35));
}
.morph {
width: 140px;
height: 140px;
background: linear-gradient(135deg, #00f5ff, #7c3cff, #ff4fd8);
animation: metamorphosis 6s infinite ease-in-out;
}
@keyframes metamorphosis {
0% {
border-radius: 50%;
transform: rotate(0deg) scale(1);
clip-path: circle(50%);
}
25% {
border-radius: 30% 70% 60% 40%;
transform: rotate(90deg) scale(1.15);
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
50% {
border-radius: 12px;
transform: rotate(180deg) scale(0.9);
clip-path: polygon(20% 0%, 80% 0%, 100% 70%, 50% 100%, 0% 70%);
}
75% {
border-radius: 60% 40% 30% 70%;
transform: rotate(270deg) scale(1.2);
clip-path: polygon(50% 0%, 90% 25%, 80% 90%, 20% 90%, 10% 25%);
}
100% {
border-radius: 50%;
transform: rotate(360deg) scale(1);
clip-path: circle(50%);
}
}