Build a Flip-Card Technology Evolution Timeline Infographic in HTML

A complete single-file HTML infographic with six tech-history era cards that flip to Then vs Now comparisons, a progress timeline and a presenter step-through mode.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and information designer. Build a single-page infographic called "Signal & Screen: 150 Years of How We Connect", an evolution-of-communication-technology timeline for classrooms and presentations. Show six era cards in chronological order: 1876 telephone, 1920 broadcast radio, 1950s home television, 1977 home computer, 1991 World Wide Web, 2007 smartphone. Each card front shows the year, era name, a large emoji illustration and a one-sentence description. Clicking, tapping or pressing Enter or Space flips the card to a back face titled Then vs Now: a Then row and a Now row, each with its own emoji and a short sentence, plus a dark Big shift strip summarizing the change, such as Kilobytes → terabytes.
Rules:
1. Above the cards, a horizontal timeline rail of year buttons that toggle their card; a teal line fills as more cards are flipped.
2. Toolbar with a Next era button that flips cards in order for presenting (also the N key), a Flip all / Reset all toggle and a live counter like 3 of 6 compared.
3. Responsive card grid that fits 360 to 1280 px wide.
4. Palette: cream background, navy ink, coral for Then, teal for Now; system font with a clear type scale and a small legend.
5. Cards are real buttons with aria-pressed, the hidden face gets aria-hidden, arrow keys move focus, focus rings are visible, and prefers-reduced-motion replaces the 3D flip with an instant swap.
6. No external libraries, fonts, images or storage; emoji and CSS only.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Signal & Screen, a flip-card timeline of 150 years of communication tech.

Six era cards run from the 1876 telephone to the 2007 smartphone. Click, tap or press Enter on a card to flip it to a Then vs Now comparison with emoji and a Big shift summary. Press Next era or the N key to reveal cards in order during a talk. Watch the teal timeline fill as you go, then use Flip all or Reset all. Arrow keys move between cards.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Naming all six eras and the exact back-face layout means the model writes real content instead of placeholder cards.
  • Fixed card height plus a backface-hidden two-face structure makes the 3D flip reliable in every modern browser.
  • A presenter Next era control and live counter turn a static graphic into something you can step through on stage.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as timeline.html and open it in any browser, or view it in the chat's preview or canvas panel. Use Next era to reveal cards one by one while presenting.

Common edits

  • Swap the six eras for another topic, such as transport, medicine or music formats, keeping the Then, Now and Big shift fields.
  • Change the palette variables or add a soft synthesized click with a mute toggle when a card flips.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics