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)

CSS
.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

CSS
.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);
}

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

CSS
.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; }
}

CTA button animations

Shine sweep

A gradient pseudo-element slides across on hover — try it.

CSS
.shine-btn {
  position: relative;
  overflow: hidden;
}
.shine-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.shine-btn:hover::before {
  transform: translateX(100%);
}

Ripple pulse

A box-shadow ring expands and fades on a continuous loop.

CSS
.ripple-btn {
  position: relative;
}
.ripple-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent);
  animation: ripple 1.8s ease-out infinite;
}
@keyframes ripple {
  to { box-shadow: 0 0 0 14px transparent; }
}

Lift on hover

translateY plus a matching shadow — the classic tactile lift.

CSS
.lift-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lift-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px var(--accent);
}

Outline halo

A ::before border scales in from outside and settles into place on hover.

CSS
.outline-btn {
  position: relative;
}
.outline-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  transform: scale(1.18);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.outline-btn:hover::before {
  transform: scale(1.08);
  opacity: 1;
}

Icon slide

A nested arrow span slides on hover — no JS, just a scoped child transition.

CSS
.icon-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-slide-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.icon-slide-btn:hover .arrow {
  transform: translateX(6px);
}

Tactile press

A hard drop-shadow 'ledge' that compresses on :active — color-mix() for the shadow tone.

CSS
.press-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 0 color-mix(in srgb, var(--accent) 60%, black);
}
.press-btn:hover {
  transform: translateY(-2px);
}
.press-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 color-mix(in srgb, var(--accent) 60%, black);
}

Box-shadow functions

Glow pulse, depth lift, neon layering, and inset press — with color, blur, and spread control.

Technique (4 functions)

Color

CSS
.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.