Build a Weighted Pros and Cons Infographic with a Tipping Balance Scale

A single-file interactive infographic where importance sliders weight each pro and con and an SVG balance scale tips live to show a verdict.

The prompt

Prompt
Act as a senior information designer who writes clean, dependency-free front-end code. Build Tipping Point, an interactive pros and cons infographic for one decision: should Maya accept a product lead job in Lisbon? List 4 pros and 4 cons, each with a short bold label, a one-line specific detail with real numbers, and an importance slider from 0 to 10 with a sensible default. In the center, draw an SVG balance scale. The pros pan hangs on the left and the cons pan on the right, each showing its total and small stacked weight blocks. The beam tips live as sliders move. Rules: 1) Use native range inputs so mouse, touch and arrow keys all work, with visible focus rings and aria-valuetext. 2) Tilt angle is the score gap divided by total weight, capped at 22 degrees. Ease the motion, but snap instantly under prefers-reduced-motion. 3) Show a verdict chip (Too close to call, Leaning yes or no, Clear yes or no), a one-line explanation and the single heaviest factor, announced through aria-live. 4) Add Reset weights and Weigh everything equally buttons. 5) Use a warm off-white background, green for pros, brick red for cons and brass for the scale. Use three columns on desktop and stack them with the scale on top below 920px. 6) Use no external files, storage or network calls. 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: Tipping Point, a weighted pros and cons scale for a job move to Lisbon.

The page opens perfectly balanced at 24 points each side. Drag any importance slider, or Tab to it and use the arrow keys, and the brass beam tips toward the heavier pan. Weight blocks stack up as each side gains points. The verdict chip shifts from Too close to call to Leaning or Clear yes/no. Try setting family distance to 10, then hit Reset weights.

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

Tips and common edits

Why this works

  • Native range inputs give touch, mouse and keyboard support plus accessibility for free, so the sliders work everywhere on the first try.
  • Scaling tilt by gap ÷ total weight with a 22° cap keeps the scale readable and stops pans from flying off the canvas.
  • Equal default totals make the scale start level, which invites users to drag right away and see the tool's point.

Paste into ChatGPT, Claude or Gemini. Save the returned code as tipping-point.html and open it in any browser, or view it in the chat's canvas or preview. To reuse it, swap the question and the eight reasons for your own decision.

Common edits

  • Replace the Lisbon question and the eight reasons with your own decision, such as choosing a laptop, a vendor or a four-day week.
  • Add a soft Web Audio click on slider change with a mute toggle, or raise the item count to 6 per side.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics