components / vinyl

vinyl.

a record on a platter — grooves as one repeating-radial-gradient, album art in the centre label, optional tonearm. pausing sets animation-play-state so the record holds where it stopped instead of snapping to twelve o'clock. round on purpose: it's the object, not a corner radius.

record label

stopping holds the record where it is — starting picks up from there.

installation
bunx @justin06lee/chrome@latest add vinyl
props
nametypedefaultdescription
srcstring-art for the centre label; without it the label is a plain disc.
altstring''
sizenumber160diameter in px.
spinningbooleantrue
periodnumber4seconds per revolution.
armbooleanfalsedrop the tonearm onto the record.
labelRationumber0.36label diameter as a fraction of the record.
classNamestring-