Still life — weight shift
Variant: Weight shift
A standing figure is never centred for long; it rests on one foot and moves its weight across every few seconds, and that shift is the difference between standing and being propped up. The body leans 3.5° about its feet on ease-in-out, because a body moving its own weight starts and stops gently — anything snappier looks pushed. Two secondary motions carry it. The face counter-rotates about the same feet by 60% of the lean, so it travels and tilts less than half as far as the body under it: birds hold their heads still in space while the body moves, and it is why this reads as balancing rather than as a picture being rotated. The tail has weight of its own: through the first half of each lean it holds its angle in space while the body tips, then swings half again past where the body stopped and comes back once, settling about 900ms after everything else — follow-through in three keyframes. Use it on larger idle characters, hero illustrations and waiting screens, where breath alone is too small to notice. Under reduced motion the figure stands square and only a small belly breath remains.
The source
A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Still life — weight shift</title>
<style>
:root {
/* Neutrals — fixed, never remixed. */
--ivory: #faf9f5;
--paper: #ffffff;
--oat: #e3dacc;
--slate: #141413;
/* Knobs — the remix API. A knob exists iff declared here and used below. */
--hue: 38.8;
--lift: 0;
--chroma: 1;
--speed: 1;
/* Accents — derived from the knobs with the family's offsets baked in,
so one hue roll moves them together. Defaults reproduce the original hex. */
--clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
--clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
--olive: oklch(
calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3)
);
--rust: oklch(
calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3)
);
/* Clock — lean onto one foot, hold, lean onto the other, hold, come back
to centre. A standing figure is never centred for long; it rests its
weight on one side and moves it across every few seconds. */
--cycle: 11s;
--t: calc(var(--cycle) / var(--speed));
--ease-accent: cubic-bezier(0.37, 0, 0.63, 1);
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
background: var(--ivory);
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
sans-serif;
color: var(--slate);
}
figure {
display: grid;
justify-items: center;
gap: clamp(6px, 2vh, 12px);
}
/* Sized off the frame's height as well as its width: the card is short and
the caption has to fit under the figure at every stage. */
svg {
display: block;
width: min(260px, 84vw, calc((100vh - 76px) * 1.4));
height: auto;
overflow: visible;
}
.perch {
fill: none;
stroke: color-mix(in oklch, var(--oat), var(--slate) 26%);
stroke-width: 4;
stroke-linecap: round;
}
.twig {
stroke-width: 2.6;
}
.tail,
.beak,
.wing {
fill: var(--clay-d);
}
.body {
fill: var(--clay);
}
.belly {
fill: color-mix(in oklch, var(--clay) 34%, var(--ivory));
}
.foot,
.lid {
fill: none;
stroke: var(--clay-d);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.lid {
stroke-width: 2.4;
opacity: 0;
}
.white {
fill: var(--paper);
}
.pupil {
fill: var(--slate);
}
/* Every pivot is a point on the drawing rather than a box's centre: the
body grows and leans from its feet, the face counter-turns about them
too, the tail swings from where it meets the body, and the eyes close
about their own centre line. */
.fig,
.ride,
.breath,
.head {
transform-origin: 100px 125px;
}
.belly {
transform-origin: 100px 121px;
}
.tail {
transform-origin: 100px 118px;
}
.eyes {
transform-origin: 100px 80px;
}
figcaption {
display: grid;
justify-items: center;
gap: 2px;
text-align: center;
}
.cue {
font-size: clamp(13px, 3.8vw, 15px);
font-weight: 600;
letter-spacing: -0.01em;
}
.spec {
font-size: clamp(11.5px, 3.2vw, 12.5px);
font-variant-numeric: tabular-nums;
color: color-mix(in oklch, var(--slate) 58%, var(--ivory));
}
/* A lean is 3.5° about the feet on ease-in-out, because a body moving its
own weight starts gently and stops gently. Anything snappier looks like
it was pushed. The tail is drawn behind the perch, so it sits outside
the figure and rides the same lean on its own wrapper. */
.fig,
.ride {
animation: lean var(--t) infinite;
}
/* The face counter-rotates about the same feet by 60% of the lean, so it
travels and tilts less than half as far as the body under it. A bird
holds its head still in space while its body moves; that is why the
figure reads as balancing rather than as a picture being rotated. */
.head {
animation: level var(--t) infinite;
}
/* Follow-through. The tail has its own weight: through the first half of
each lean it holds its angle in space while the body tips, then swings
half again past where the body stopped and comes back once, settling
about 900ms after everything else. */
.tail {
animation: trail var(--t) infinite;
}
@keyframes lean {
0% {
rotate: 0deg;
}
3.636% {
rotate: 0deg;
animation-timing-function: var(--ease-in-out);
}
18.182% {
rotate: 3.5deg;
}
40% {
rotate: 3.5deg;
animation-timing-function: var(--ease-in-out);
}
56.364% {
rotate: -3deg;
}
74.545% {
rotate: -3deg;
animation-timing-function: var(--ease-in-out);
}
89.091% {
rotate: 0deg;
}
100% {
rotate: 0deg;
}
}
@keyframes level {
0% {
rotate: 0deg;
}
3.636% {
rotate: -0deg;
animation-timing-function: var(--ease-in-out);
}
18.182% {
rotate: -2.1deg;
}
40% {
rotate: -2.1deg;
animation-timing-function: var(--ease-in-out);
}
56.364% {
rotate: 1.8deg;
}
74.545% {
rotate: 1.8deg;
animation-timing-function: var(--ease-in-out);
}
89.091% {
rotate: 0deg;
}
100% {
rotate: 0deg;
}
}
@keyframes trail {
0% {
rotate: 0deg;
}
3.636% {
rotate: 0deg;
animation-timing-function: var(--ease-in-out);
}
10.909% {
rotate: -3.5deg;
animation-timing-function: var(--ease-in-out);
}
18.182% {
rotate: 1.75deg;
animation-timing-function: var(--ease-in-out);
}
22% {
rotate: -0.53deg;
animation-timing-function: var(--ease-in-out);
}
26.364% {
rotate: 0deg;
}
40% {
rotate: 0deg;
animation-timing-function: var(--ease-in-out);
}
48.182% {
rotate: 6.5deg;
animation-timing-function: var(--ease-in-out);
}
56.364% {
rotate: -3.25deg;
animation-timing-function: var(--ease-in-out);
}
60.182% {
rotate: 0.97deg;
animation-timing-function: var(--ease-in-out);
}
64.545% {
rotate: 0deg;
}
74.545% {
rotate: 0deg;
animation-timing-function: var(--ease-in-out);
}
81.818% {
rotate: -3deg;
animation-timing-function: var(--ease-in-out);
}
89.091% {
rotate: 1.5deg;
animation-timing-function: var(--ease-in-out);
}
92.909% {
rotate: -0.45deg;
animation-timing-function: var(--ease-in-out);
}
97.273% {
rotate: 0deg;
}
100% {
rotate: 0deg;
}
}
@media (prefers-reduced-motion: reduce) {
/* Rotation covers ground, so it all parks and the figure stands square.
A small belly breath stays, so the card is still not a photograph. */
.fig,
.ride,
.head,
.tail {
animation: none;
}
.belly {
animation: fill-still calc(var(--t) * 1.5) var(--ease-accent) infinite alternate;
}
@keyframes fill-still {
from {
scale: 1;
}
to {
scale: 1.025;
}
}
}
</style>
</head>
<body>
<figure
role="img"
aria-label="A small round bird on a perch shifting its weight from side to side; its face stays nearly level and its tail swings after it"
>
<svg viewBox="30 46 140 104" aria-hidden="true">
<g class="ride"><path class="tail" d="M94 116 L90 140 L100 135.5 L110 140 L106 116 Z" /></g>
<path class="perch" d="M36 126 Q100 130 164 126" />
<path class="perch twig" d="M146 127 L154 119.5" />
<g class="fig">
<path
class="foot"
d="M94 121 V126.5 M106 121 V126.5 M90.5 128 Q93 124.5 96.5 127 M102.5 128 Q105 124.5 108.5 127"
/>
<g class="breath">
<ellipse class="body" cx="100" cy="91.5" rx="30" ry="33.5" />
<ellipse class="belly" cx="100" cy="110" rx="17" ry="11" />
<path
class="wing"
d="M72.5 88 Q67 106 85 121 Q76 104 72.5 88 Z M127.5 88 Q133 106 115 121 Q124 104 127.5 88 Z"
/>
<g class="head">
<path class="beak" d="M96 89 H104 L100 95.5 Z" />
<g class="eyes">
<circle class="white" cx="89" cy="80" r="8.5" />
<circle class="white" cx="111" cy="80" r="8.5" />
<g class="pupils">
<circle class="pupil" cx="89" cy="80" r="3.4" />
<circle class="pupil" cx="111" cy="80" r="3.4" />
</g>
</g>
<path class="lid" d="M80.5 80 Q89 81 97.5 80 M102.5 80 Q111 81 119.5 80" />
</g>
</g>
</g>
</svg>
<figcaption>
<span class="cue">Weight shift</span>
<span class="spec">lean 3.5° · face holds steady · tail follows</span>
</figcaption>
</figure>
</body>
</html>
The variant family
Same idea, one axis moved. Compare them side by side before you commit.