Skip to content
Back to the lab

Once per session · a sessionStorage key

The opening animation on first visit

A 0.9s animation on the first page of each session: a black screen, a lamp cord coming down, then a glow that lights the page. It plays once per session; the button here clears the record and reloads so you can see it again.

Source · GitHub

The animation is played by OvertureLight in the layout, and whether it has played is stored in sessionStorage. It plays only on arrival and cannot be mounted separately on this page, so the button calls forgetOverture() to clear the record and then reloads this page, and the layout plays it again on load. It also triggers the home headline's line-by-line rise.

Source

Source files on GitHub:

Back to the lab