Orchestrated Motion
Eight bars that stretch and settle one after the other, each a tenth of a second after its neighbor: a pulse crossing the row in a 1.5 s loop, with no bar ever leaving its place. Pure CSS, 1.3 KB, zero JavaScript.
Updated
This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Transitions has 52 effects, including 9 free. Explore the category →
3 usage examples



How it works
The .orch-bars row lines up eight .orch-bar elements of 12 × 80 px, 12 px apart, that is 180 px wide. Each bar plays the same animation, orchBounce: it goes from 25% to 100% of its height and back, through transform: scaleY(), in 1.5 s and on a loop. Since the stretch starts from the middle, the bar pushes up as much as down: 20 px at its shortest, 80 px at its longest, always centered on the same line.
What makes the wave is the delay. Each bar carries in its style attribute an animation-delay 0.1 s longer than the previous one: the second reaches its peak a tenth of a second after the first, and so on. So the crest takes 0.7 s to cross the eight bars, then starts again from the left. On the first pass, bars wait for their turn at 25%, the animation's starting value: none of them jumps.
Nothing is moved or resized in the page: the row takes 80 px of height from start to finish (same height read at every instant), and the browser only has transforms to compose. There is no script, no trigger, no state: the effect runs as soon as it is displayed and only stops if you remove it or pause it in CSS.
Accessibility
- Reduced motion: the bars no longer stretch. They freeze at half height (40 px) and the wave turns to light, each bar going down to 30% opacity then back up, with the same delays: you still see that something is in progress.
- Screen readers: the demo has no text and no role, it is silent. If it decorates, add
aria-hidden="true"on.orch-root. If it means "please wait", put a text next to it in arole="status"element: bars alone say nothing to someone who cannot see them. - Endless loop: nothing stops it. For a wait of a few seconds that is harmless; as permanent decoration on a page, WCAG criterion 2.2.2 asks for a way to pause it (see Customize).
- Keyboard and touch: no focusable element, no interaction. The effect catches neither click nor finger.
Browser compatibility
CSS only: @keyframes, transform, flexbox with gap, prefers-reduced-motion. Same stretch, same delays and same opacity fallback recorded in Chromium 149, Firefox 151 and WebKit 26.5, two copies on one page included. Unprefixed animations date back to Chrome 43, Firefox 16 and Safari 9; the spacing between bars, gap in a flex box, is what needs Chrome 84, Firefox 63 and Safari 14.1. In an older browser the wave plays but the bars touch and form one block.
Without CSS animation support, the eight bars stay displayed at 25% of their height: a fixed pattern, with no hole in the page. To replace gap, give the bars a horizontal margin.
The code
HTML structure to paste into your page (the CSS + JS come with your purchase):
<div class="orch-root">
<div class="orch-bars">
<div class="orch-bar" style="animation-delay: 0s;"></div>
<div class="orch-bar" style="animation-delay: 0.1s;"></div>
<div class="orch-bar" style="animation-delay: 0.2s;"></div>
<div class="orch-bar" style="animation-delay: 0.3s;"></div>
<div class="orch-bar" style="animation-delay: 0.4s;"></div>
<div class="orch-bar" style="animation-delay: 0.5s;"></div>
<div class="orch-bar" style="animation-delay: 0.6s;"></div>
<div class="orch-bar" style="animation-delay: 0.7s;"></div>
</div>
</div>
One-time payment, no subscription — the code is yours forever
Customize
Options passed to the API or data-* attributes:
| Option / property | Default | Effect |
|---|---|---|
Stretch anchor (CSS — transform-origin on .orch-bar) |
center of the bar | 50% 100% makes the bars grow from their base: a bar chart, jets, a level. 50% 0 makes them hang like stalactites. |
Delay step (HTML — animation-delay in each bar's style) |
0.1 s more per bar | This is the wave's speed. 0.05 s: the bars move almost together; 0.2 s: the crest takes its time. Negative values start the loop partway through. |
Loop duration (CSS — animation: orchBounce 1.5s) |
1.5 s | 1 s for a nervous wait, 2.4 s for calm decoration. Keep the total delay (step × number of bars) under the duration, or two crests follow each other in the row. |
Amplitude (CSS — scaleY(.25) in @keyframes orchBounce and on .orch-bar) |
from 25% to 100% | Change both values together: the one on .orch-bar is the waiting height before the first pass. .6 gives a quiver, .1 bars that almost flatten. |
Number of bars (HTML — one <div class="orch-bar"> per bar) |
8 | From 3 for a pictogram to about twenty for a frieze; write the delay of each bar you add. |
Pause (CSS — animation-play-state on .orch-bar) |
running | paused freezes each bar where it is, running restarts it from the same point. Hook it to a class to offer a pause button. |
FAQ
-0.6s, -0.5s, -0.4s… starts as if it had already been running for 0.6 s. This is the setting used in the switchboard example..orch-bar:nth-child(3) { height: 50px }) and keep align-items: center, or flex-end with a bottom anchor to set them on one line. To freeze exact values, as in the bar chart example, cut the animation (animation-name: none) and set transform: scaleY() bar by bar.