All styles
Playful

Swing Tag CSS Button

Free29 lines · no JS · WCAG AAA 7.0
Open in Studio
Theme

A real <button> carrying .btn-swing-tag — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
not declared
disabled
not declared
.btn-swing-tag {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  background: #f59e0b;
  color: #451a03;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transform-origin: 50% -14px;
  animation: btn-swing-tag-sway 2.6s ease-in-out infinite;
}
.btn-swing-tag:hover {
  animation-duration: 1s;
}
@keyframes btn-swing-tag-sway {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
.btn-swing-tag:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-swing-tag
PlayfulRoundedAnimatedElastic

Implementation notes

About the Swing Tag CSS button

Swing Tag uses expressive color, shape and feedback for characterful products. Its rounded corners balance product-friendly softness with a clear boundary. Motion comes from a 2.6s keyframe animation. The animated, elastic details are included in the copy-paste CSS.

Usage

<button class="btn-swing-tag">Button</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal87% match

Tactile Citrus Decision Modal

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Free sample
Input87% match

Tactile Citrus Smart Input

Tactile Citrus kit

orange palettesolid surface
Pro preview
Toggle87% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Card87% match

Tactile Citrus Feature Card

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Dropdown87% match

Tactile Citrus Action Menu

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Pro preview
Form87% match

Tactile Citrus Signup Form

Tactile Citrus kit

orange palettesolid surface
Unlock with Pro →
Get the complete Tactile Citrus kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Spark Burst

Wiggle

Duck Yellow

Confetti Rain

Party Popper

Crayon Scribble

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does