03.3Block 03.3 · Announcements
Venue Marquee
A club’s site on the night, under a brass flip-dot marquee. Tonight’s acts clatter in one at a time, amber discs resolving into a name, over the running order and the tickets.
- Version
- 0.1.0
- Size
- 40.7 KB gzipped
- Access
- With a Pass
- Needs
- venue-marquee.mjs + venue-marquee.css · Flip-Dot
- Tests
- 12 tests · 9 states
On this page
Use it
A venue's tonight: a club, a music hall, a theatre, a cinema's showings or a festival stage, where the line-up is the product and the sign is how a venue has always announced it. The running order drives the sign; the ticket card sells the night.
Copy the venue-marquee folder and the flip-dot folder from its package next to your page, link the stylesheets and mount it on an element. Every option has a default; the lab’s Code tab writes the same example at any settings, and for React, Vue, Svelte or a custom element (Using a framework).
<link rel="stylesheet" href="flip-dot/flip-dot.css">
<link rel="stylesheet" href="venue-marquee/venue-marquee.css">
<div id="venue-marquee"></div>
<script type="module">
import FlipDot from './flip-dot/flip-dot.mjs';
import { mount } from './venue-marquee/venue-marquee.mjs';
const venueMarquee = mount(document.getElementById('venue-marquee'), {
club: 'Undercroft',
address: 'Arch 14, Keston Road',
date: 'Saturday 27 September',
}, { FlipDot });
// venueMarquee.update({ … }); change any option in place
// venueMarquee.destroy(); and take it away again
</script>Options
| Option | Type | Default | What it does |
|---|---|---|---|
| club | text | 'Undercroft' | Club |
| address | text | 'Arch 14, Keston Road' | Address |
| date | text | 'Saturday 27 September' | Weekday, day, month: the sign shows it shortened (SAT 27 SEP). |
| doors | text | '22:00 – 05:00' | Doors |
| headline | text | 'Tonight under the arches' | Headline |
| cta | text | 'Buy tickets' | The price is added from the release on sale. |
| ctaHref | text | '#tickets' | Button link |
| palette | sodium · ultraviolet | 'sodium' | Sodium amber on black brick, or the ultraviolet late room. |
| scheme | sodium · white · signal | 'sodium' | The name line’s discs; the time line is always white. |
| finish | brass · ink · graphite · steel | 'brass' | Housing |
| glass | boolean | true | Glass cover |
| mount | wall · hanging · none | 'wall' | Bolted to the wall on brackets, hung on rods, or neither. |
| wave | scatter · sweep · diagonal · centre | 'scatter' | Scatter clatters every disc in at random: a name arrives as noise and resolves. |
| light | number, 0 to 345 | 315 | Light from (degrees) |
| rotate | boolean | true | A new act every few seconds while the sign is seen, with a pause button. |
Methods
mount(element, options, { FlipDot })- Builds the block inside the element and returns its handle. Hand it the Flip-Dot it is built with.
handle.roothandle.signhandle.shownhandle.show(i)- Put an act on the sign (−1: the night itself).
handle.update(next = {})- Change options in place.
handle.destroy()- Stops it and cleans up after it.
States
- ArrivalThe marquee writes TONIGHT and the shortened date in with the wave when it first comes into view.
- RotatingEvery 5.6 s while seen the next act clatters in: the name in amber (large face), time and room in white (small face), only the discs that differ flipping, at random moments with the scatter wave.
- ChosenAn act row is a real button: pressing it writes that act on the sign and presses the row (aria-pressed, accent bar, accent time); the rotation rests 14 s.
- PausedA real toggle (aria-pressed) stops the rotation (WCAG 2.2.2) with a play/pause glyph.
- PaletteSodium (amber on near-black) or ultraviolet (lilac on violet-black); fitting sodium, white or signal; brass, ink, graphite or steel housing; wall, hanging or no mount.
- TabletThe running order and the ticket card stack; the card turns sideways, releases left and the price and button right.
- PhoneUnder a 720 px container the bar wraps with the nav on its own scrolling row, the meta stacks one fact a line, the act rows restack (time and room, then name, then note).
- Reduced motionEvery name swaps in at once and no frame is requested; the rotation is off; every act is in the running order and on the sign when chosen.
- Off screenThe rotation timer stops and the sign sleeps.
How it works
Made of: Scatter wave arrival, Per line disc fitting, Wall bracket mount, List driven sign, Pausable rotation, Visibility gated timer, Reduced motion static sign.
Original composition. The Undercroft, its address and every act are invented. Imagery is CSS drawn for the scene; the marquee is the Flip-Dot with its wall mount. Faces: Boldonse and Geist Mono (SIL OFL 1.1), Latin subsets as WOFF2.
Built with
More blocks on the same object:
- 03.1Departures BoardA departures board of flip-dot lines under an enamel fascia.
- 03.2ScoreboardA match centre round a flip-dot scoreboard.
- 06.4Specimen CaseA bento of glass-topped compartments in a machined case, each holding one real Tactile object running small (the Odometer, the Flip-Dot, the Detent Dial, the Vessel) with an engraved label card under the glass.