Game HUD
Resource bars, minimap, quest tracker, hotbar and inventory, floating numbers, achievement toast and key prompts, laid over a scene. Corners on wide screens, stacked edges on phones, and the middle of the screen always clear. Try it in Skyrim, Pip-Boy, XMB and Cassette Futurism.
HUD overlay .hud
Six regions over a .hud-scene (any image, SVG, video or canvas). The middle row stays empty; only floating numbers cross it.
- N
- NE
- E
- SE
- S
- SW
- W
- NW
Bleak Falls Barrow
- Speak to Farengar
- Retrieve the Dragonstone
- Collect draugr relics 3/5
E Open chest
Main quest. 1.2 km north-east.
Fast travel available.
Resource bars .hud-bar
--value (0–1) fills the bar; --trail shows the damage just taken. With motion on, the trail also follows --value by itself, half a second late.
Live (needs JavaScript): each hit drops --value only; the trail is automatic when motion is on.
Minimap .map.hud-minimap and heading strip
Core's .map frame and .map-pins, square or round, with a player arrow turned by --heading. The heading strip is core's .compass-strip.
- N
- NE
- E
- SE
- S
- SW
- W
- NW
Quest tracker .hud-quests
Objectives are an <ol class="hud-objectives">: done, current (aria-current="step"), failed and pending each have their own mark, with an optional .hud-count.
The Golden Claw
- Speak to Lucan Valerius
- Find the bandits 1/1
- Retrieve the golden claw 0/1
- Keep Camilla out of danger
- Collect wolf pelts 3/5
Side: A Night to Remember
- Find Sam Guevenne's staff in Morthal, the town hall or the general store
Hotbar and inventory slots .hud-slot
Square slots with an icon, key, count and a cooldown sweep from --cooldown (0–1). Rarity from data-rarity sets the border, glow and 1–5 pips. A hidden radio selects the slot.
Inventory grid .hud-inventory
Floating numbers .hud-float
Placed at --x/--y in the nearest positioned box. With motion on they rise and fade once; here they repeat. With motion off they stay put until the app removes them.
Live (needs JavaScript): spawns a number that removes itself on animationend.
Achievement toast .toast.hud-achievement
A core .toast with an icon, title, description, score and optional progress. Put it in a .toast-region with popover="manual" so it shows over everything, even an open modal.
Key prompts .hud-prompt
Core <kbd> for keys; kbd.hud-pad for gamepad buttons, ringed by data-button (south, east, west, north). A <button class="hud-prompt"> is the tap target on touch screens.
E Open
R Take all
Shift + E Steal
Hold E Pick lock
A Open
B Back
X Take all
Y Favourite
LBRB Switch tab
✕ Select
○ Cancel