Skip to content

Add Null Motion opening splash to the launch preview - #81

Open
reco-baba wants to merge 1 commit into
blixvip:mainfrom
reco-baba:null-motion-splash
Open

reco-baba wants to merge 1 commit into
blixvip:mainfrom
reco-baba:null-motion-splash

Conversation

@reco-baba

Copy link
Copy Markdown

What

A short (~2.5s) opening animation on the launch preview (demo.html):

  1. An empty timeline draws in with a 0:00.0 clock.
  2. A white playhead (same style as the draft strip's) sweeps it; each letter of null lands as the playhead passes it. The letter entrance (rise / flip / stretch) is picked at random per visit.
  3. The orange dot drops in with a bounce, the track fills orange, and the wordmark flies into the header's null. logo while the page shows through.

Behaviour

  • Plays once per tab session (sessionStorage); ?splash forces it.
  • Click or any key skips straight to the exit.
  • Skipped entirely for prefers-reduced-motion.
  • Uses the bundled GSAP; no new dependencies, no other origins.

Files

  • public/splash.js, public/splash.css (new)
  • public/demo.html: one stylesheet link, the splash markup and <script src=splash.js>

Checks

  • npm run check and npm test pass (50 pass, 2 skipped).
  • Checked in a browser at desktop width and 375px mobile width; no console errors.

A playhead sweeps an empty timeline, null lands letter by letter behind
it (entrance picked at random each visit), the orange dot drops in, and the
wordmark flies into the header logo. Plays once per tab session, ?splash
forces it, click/any key skips, prefers-reduced-motion skips it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant