Split-Flap Board
An airport-style board whose letters flip one by one when the destination changes.
AI prompt
Close-up photograph of a vintage airport split-flap departures board with the word TOKYO displayed in white condensed letters on black rectangular cells, a thin horizontal hinge line across each cell, one letter caught mid-flip so the top half shows the old letter and the bottom half the new one, warm tungsten light, shallow depth of field, nostalgic. Negative: LED dots, modern screen, blur on all letters, text errors, people. Reduced motion: static board.About this pattern
Definition
A split-flap display shows each character on a card that flips down to reveal the next. The pleasure is in the staggered, mechanical rhythm: letters flip left to right, each with a tiny delay, as if a motor were turning them.
When to use it
- Keep every cell the same width, with a thin dark hinge line across the middle.
- Flip each cell by rotating it 90 degrees, swapping the character, and rotating back; stagger cells by 50ms.
- Pad shorter words with spaces so the board never changes width.
What the controls do
- Four destination buttons and a Next button.
Motion & timing
- Each cell flips in 160ms with a 50ms stagger; a full change takes under a second.
- Reduced motion: the text swaps instantly without flipping.
Tips & variations
- Expose the current text to assistive technology once, not per cell.
- Use a heavy, condensed face so the small cells read.
Code of this live preview
<div class="bx"><div class="bd" id="bd" role="img" aria-label="Destination: BERLIN"></div><div class="pre" id="pre" role="group" aria-label="Destination"><button data-p="0" aria-pressed="true">Berlin</button><button data-p="1" aria-pressed="false">Tokyo</button><button data-p="2" aria-pressed="false">Lisbon</button><button data-p="3" aria-pressed="false">Oslo</button></div><button class="mini" id="nx" type="button">Next</button></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bd{display:flex;gap:4px;justify-content:center;padding:14px;border-radius:12px;background:#1a1a1a}
.c{width:32px;height:44px;border-radius:5px;background:linear-gradient(#262626 49%,#0e0e0e 50%,#222 51%);color:#f3f3f0;font:700 26px/44px "Arial Narrow",Arial,sans-serif;text-align:center;transition:transform .08s linear}.c.f{transform:rotateX(90deg)}
.mini{height:30px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer;justify-self:start}
@media (prefers-reduced-motion:reduce){.c{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const W=['BERLIN','TOKYO','LISBON','OSLO'],bd=document.getElementById('bd'),bs=[...document.querySelectorAll('#pre button')];let p=0,cur=' ';const calm=matchMedia('(prefers-reduced-motion:reduce)').matches;
const cells=Array.from({length:7},()=>{const d=document.createElement('div');d.className='c';d.textContent='\u00A0';bd.appendChild(d);return d;});
function show(w){w=w.padEnd(7,' ');bd.setAttribute('aria-label','Destination: '+w.trim());cells.forEach((c,i)=>{const ch=w[i]===' '?'\u00A0':w[i];if(c.textContent===ch)return;if(calm){c.textContent=ch;return;}setTimeout(()=>{c.classList.add('f');setTimeout(()=>{c.textContent=ch;c.classList.remove('f');},90);},i*50);});}
function up(){bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));show(W[p]);}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));document.getElementById('nx').addEventListener('click',()=>{p=(p+1)%W.length;up();});up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Split-Flap Board — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bd{display:flex;gap:4px;justify-content:center;padding:14px;border-radius:12px;background:#1a1a1a}
.c{width:32px;height:44px;border-radius:5px;background:linear-gradient(#262626 49%,#0e0e0e 50%,#222 51%);color:#f3f3f0;font:700 26px/44px "Arial Narrow",Arial,sans-serif;text-align:center;transition:transform .08s linear}.c.f{transform:rotateX(90deg)}
.mini{height:30px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer;justify-self:start}
@media (prefers-reduced-motion:reduce){.c{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="bd" id="bd" role="img" aria-label="Destination: BERLIN"></div><div class="pre" id="pre" role="group" aria-label="Destination"><button data-p="0" aria-pressed="true">Berlin</button><button data-p="1" aria-pressed="false">Tokyo</button><button data-p="2" aria-pressed="false">Lisbon</button><button data-p="3" aria-pressed="false">Oslo</button></div><button class="mini" id="nx" type="button">Next</button></div>
</div>
<script>
const W=['BERLIN','TOKYO','LISBON','OSLO'],bd=document.getElementById('bd'),bs=[...document.querySelectorAll('#pre button')];let p=0,cur=' ';const calm=matchMedia('(prefers-reduced-motion:reduce)').matches;
const cells=Array.from({length:7},()=>{const d=document.createElement('div');d.className='c';d.textContent='\u00A0';bd.appendChild(d);return d;});
function show(w){w=w.padEnd(7,' ');bd.setAttribute('aria-label','Destination: '+w.trim());cells.forEach((c,i)=>{const ch=w[i]===' '?'\u00A0':w[i];if(c.textContent===ch)return;if(calm){c.textContent=ch;return;}setTimeout(()=>{c.classList.add('f');setTimeout(()=>{c.textContent=ch;c.classList.remove('f');},90);},i*50);});}
function up(){bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));show(W[p]);}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));document.getElementById('nx').addEventListener('click',()=>{p=(p+1)%W.length;up();});up();
</script>
</body></html>