Build a split flap animation as a train departure board. Dark page (#15171b) and a black board (#0b0c0e, 18px radius, 1px #23262c border). Header "Corvel Central, Departures" with a yellow (#ffd23f) clock, then four rows. Each row has split flap cells in a monospace font: 5 for the time (in yellow), 10 for the destination and 2 for the platform, each cell 40px wide on desktop and 15.5px on phones, 1.42 times as tall, with a dark hinge line across the middle. Build every cell from four halves: a static top showing the next character, a static bottom showing the current one, a top flap that rotates from 0 to -90 degrees on its bottom edge in 55ms, and a bottom flap that rotates from 90 to 0 degrees on its top edge in the next 55ms, with the Web Animations API. Cells step through the alphabet, digits and colon until they reach the target, at most nine flips, staggered 22ms per cell and 140ms per row. After the flaps, a status with a glowing dot: green #4ade80 On time, yellow Boarding, orange #fb7c3c Delayed. A "Later trains" button flips to the next four departures, and the board also changes every 8 seconds. On phones the status moves under each row. Give each row a full aria-label and hide the cells, and set characters instantly for reduced motion.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by putting your own schedule, prices or scores on the board.
About this split flap animation
A split flap animation brings back the clatter of an old station board. Each character here is a little card hinged across the middle, and when the departures change the top half falls forward to reveal the next letter, again and again, until every cell lands on its target. Cells start a few milliseconds apart, so the change ripples along each row and down the board.
Every cell is four pieces, two still halves and two moving flaps. The top flap folds down in 55 milliseconds and darkens as it falls, then the bottom flap swings up into place. Limiting each cell to nine flips keeps the whole board settling in about a second, long enough to enjoy and short enough to read.
Why the prompt works
- It describes the four halves. That structure is what makes a flap look real rather than a fade.
- It caps the flips. Nine steps per cell stops long words from flipping for seconds.
- It shrinks for phones. Smaller cells and statuses under each row keep all four trains on screen.
Where to use it
Travel and booking sites, product launch countdowns, scoreboards, price boards and any page that wants a little analogue drama.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.