StealThis .dev

Auto — Trade-In Valuation

A three-step trade-in appraisal desk for an auto dealership, walking a customer from vehicle details through condition and equipment to an animated value estimate. Make, year, trim, odometer, an overall condition grade, value-adding options and disclosure flags all feed a live valuation model that drives a sweeping needle gauge, a counting headline figure, a low-to-high confidence range and an itemized breakdown of every adjustment, with a button to apply the credit straight to a purchase.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Trade-In Valuation

A three-step appraisal flow for Ironwood Auto & Diesel that takes a customer from raw vehicle details to a finished offer. Step one collects make, model, year, trim, odometer and ZIP with tabular number figures and inline validation. Step two is a card-based condition selector — Excellent, Good, Fair or Rough, each with a visible percentage factor — alongside checkable value-adding options and disclosure flags for accidents, extra owners or active warning lights.

Submitting runs a self-contained valuation model: an age-and-trim market base, a per-mile credit or penalty against expected mileage, a compounding condition multiplier, disclosure haircuts and flat option add-ons. The result animates in as a sweeping needle gauge with a counting headline figure, a low-to-high confidence range whose width grows with vehicle age, and an itemized breakdown that colour-codes every positive and negative adjustment. Tweaking condition or options on the result screen recomputes everything instantly, and an apply-to-purchase button reserves the credit against the quote.

The whole thing is vanilla HTML, CSS and JavaScript — no frameworks, build step or external assets beyond the Inter font. The gauge is a single inline SVG arc driven by stroke-dashoffset and a rotating needle, the layout reflows to a stacked mobile view below 520px, motion respects prefers-reduced-motion, and every control stays keyboard-usable.

Illustrative UI only — fictional shop/dealership, not a real service system.