CSS SHAPES & ANIMATION PLAYGROUND
Modern CSS, actually working.
Every demo below is real, running CSS — pick a color and build a shape three different ways in the customizer, and copy the exact code for anything on this page.
Customize it yourself
11 presets, 4 independent corner-radius sliders, or drag actual points on a polygon to build a shape that doesn't exist anywhere else — then add an animation and copy the exact CSS for what's on screen.
Color
Shape mode
Shape (11 presets)
Animation (6 functions)
.my-shape {
width: 220px;
height: 220px;
background: #3b82f6;
border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
transition: border-radius 0.4s ease, clip-path 0.4s ease;
}Saved looks
Keep this setup under a name and come back to it. Saved on this device only.
Surfaces
The three treatments that actually get pasted into real projects — a frosted glass panel, a gradient with a real middle stop, and a shadow built from stacked layers rather than one flat blur. Every control takes your own colour, and each one copies out as either CSS or a Tailwind arbitrary-value class.
Frosted panel over a busy background
Frosted panel
backdrop-filter over live content
.glass {
backdrop-filter: blur(14px) saturate(160%);
-webkit-backdrop-filter: blur(14px) saturate(160%);
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 18px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.35),
0 8px 32px rgba(0, 0, 0, 0.18);
}Shape & motion gallery
Morphing blob
Four border-radius keyframes, each corner a different percentage.
.blob {
border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
animation: blobMorph 6s ease-in-out infinite;
}
@keyframes blobMorph {
0%, 100% { border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; }
25% { border-radius: 65% 35% 40% 60% / 55% 60% 40% 45%; }
50% { border-radius: 35% 65% 55% 45% / 40% 55% 45% 60%; }
75% { border-radius: 58% 42% 45% 55% / 60% 40% 60% 40%; }
}Clip-path polygon
Animating clip-path between two point sets — the browser tweens every vertex.
.clip-morph {
animation: clipMorph 4s ease-in-out infinite alternate;
}
@keyframes clipMorph {
0% { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
100% { clip-path: polygon(50% 15%, 85% 0%, 100% 70%, 60% 100%, 10% 85%); }
}Conic-gradient ring
conic-gradient() fading to transparent, rotated with a plain CSS animation.
.conic-ring {
border-radius: 50%;
background: conic-gradient(from 0deg, var(--accent), transparent 70%);
animation: ringSpin 3s linear infinite;
}
@keyframes ringSpin {
to { transform: rotate(360deg); }
}3D flip card
perspective + rotateY on hover — real 3D, not a fade crossover.
.flip-card { perspective: 800px; }
.flip-card-inner {
transition: transform 0.6s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-face { backface-visibility: hidden; }
.flip-card-back { transform: rotateY(180deg); }Border functions
6 real border techniques — gradient sweep, conic spin, marching ants, dashed rotate, double ring, and glow pulse — each with its own color, width, speed, and easing (including a custom cubic-bezier curve).
Technique (6 functions)
Color
Easing
.gradient-border {
border: 3px solid transparent;
border-radius: 16px;
background:
linear-gradient(#0b0f19, #0b0f19) padding-box,
linear-gradient(90deg, #3b82f6, transparent, #3b82f6) border-box;
background-size: 300% 100%, 300% 100%;
animation: gradientSweep 3s linear infinite;
}
@keyframes gradientSweep {
to { background-position: 300% 0, 300% 0; }
}Box-shadow functions
Glow pulse, depth lift, neon layering, and inset press — with color, blur, and spread control.
Technique (4 functions)
Color
.glow-box {
background: #3b82f6;
animation: glowPulse 2.4s ease-in-out infinite;
}
@keyframes glowPulse {
0%, 100% { box-shadow: 0 0 12px 0 #3b82f6; }
50% { box-shadow: 0 0 24px 4px #3b82f6; }
}FAQ
CSS shapes questions
What you can build, what the output looks like, and what stays on your device.
5 questions
What can I build with it?
Shapes (11 presets, four-corner radius sliders, or a polygon you draw), animations with speed and easing, glass, gradient and layered-shadow surfaces, animated borders, button effects and box-shadow animations. Each one gives you copyable CSS.
Do the animations respect reduced motion?
Yes. The generated animation CSS includes a prefers-reduced-motion block that switches the animation off for people who ask their device for less motion.
Is there Tailwind output?
The glass and surface studio can copy Tailwind classes. The shape generator gives plain CSS only.
Can I save or share what I made?
Copy share link reopens the same shape from a link, and Save keeps a named look on this device. Nothing is stored on a server.
Is anything uploaded?
No. Everything runs in your browser and the code is generated on the page as you adjust it.
Free tool by Adesh Shukla — every effect above is live CSS, copyable from this page.