← All elements

Jelly Squish Button

by @admin · 0 views

<button class="jsb" type="button">Squish me</button>

About this button

A soft button that wobbles like jelly when hovered and flattens when pressed, using one keyframe sequence.

How it works

Hovering runs one keyframe sequence that stretches the button wide and short, then tall and thin, with each swing smaller than the last, which reads as a jelly wobble. Pressing it applies a flattened scale for as long as it is held, and an inset highlight gives the surface a glossy look.

Ways to customise it

  • Change the gradient colours for another flavour.
  • Raise the first scale values for a stronger wobble.
  • Change the 0.8s duration.

Good to know

It is a real button with a visible focus outline. The wobble is decorative, so it is removed under the reduced-motion setting while the button keeps working.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Buttons

View all →