StealThis .dev
Pages Hard

Science — Interactive Periodic Table

A fully positioned periodic table of all 118 elements rendered in a CSS grid, with lanthanides and actinides broken into their own rows. Each cell shows atomic number, symbol, name, and atomic mass, and recolors live by chemical category, room-temperature state, or Pauling electronegativity. Hovering lifts a cell, clicking opens an element dossier with electron configuration, group and period, discovery year, and shell counts, and a search box spotlights matches by symbol, name, or number.

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

Code

Interactive Periodic Table

A complete, self-contained periodic table of the 118 confirmed elements, laid out with CSS grid across 7 periods and 18 groups. The lanthanide (57–71) and actinide (89–103) series are extracted into the standard lower block, with dashed placeholders marking where they belong in period 6 and 7. Every cell carries its atomic number, symbol, full name, and atomic mass in tasteful mono and serif typography.

Three color modes are a click apart. Category tints each element by chemical family (alkali metals through noble gases and the f-block series), state groups by phase at 298 K, and electronegativity maps each value along a continuous teal → blue → red Pauling ramp. The legend redraws itself to match the active mode, and a toast confirms the switch. The search field highlights matching cells by symbol, name, or atomic number and dims the rest; pressing Enter on a single match opens it directly.

Clicking any cell slides in a detail dossier with the element’s electron configuration, per-shell occupancy chips, group/period, block, room-temperature state, electronegativity, discovery year, and a short atlas note. The panel is keyboard-friendly — Escape closes it, focus is captured and restored, and the scrim is click-dismissable. Data is fully embedded in script.js (the fictional COCL-PTE reference release), so the page runs with no build step, no frameworks, and no external libraries.

Illustrative UI only — fictional authors, data, and figures; not real scientific results.