Skip to content

Typewriter and scramble headline effects, colour wipe transition - #14

Merged
tinygusie2 merged 2 commits into
mainfrom
ccr-10e269a8-ebgbir
Oct 2, 2026
Merged

tinygusie2 merged 2 commits into
mainfrom
ccr-10e269a8-ebgbir

Conversation

@tinygusie2

Copy link
Copy Markdown
Owner

What does this change?

Adds three effects inspired by a showreel:

  • Typemachine (headline in): the headline is typed out letter by letter with an underscore cursor.
  • Letters husselen (headline in): random letters that resolve left to right into the real text. The glyphs come from a hash of letter and step, so every frame renders the same way each time.
  • Kleurveeg (clip transition): an accent bar sweeps across the screen and reveals the incoming clip. The reveal works through clip-path, so a crop stays intact.

All three are driven by a timeline tween whose target is a property setter. tl.seek() suppresses onUpdate callbacks, so a setter is what keeps scrubbing and frame-by-frame rendering in step. The effects appear in the editor's existing pickers (headIns and transitions).

Side note, not changed in this PR: the counter on chips (onUpdate in template.mjs) probably has the same seek problem.

How did you check it?

  • npm run check and npm test pass
  • Tried it in the editor (including undo/redo)
  • Rendered a video: seeked frame by frame in headless Chromium at 30 fps and checked the frames

Screenshot / GIF

Demo render shared in the session.

🤖 Generated with Claude Code

https://claude.ai/code/session_013aSb67T7ns4nhVfrQ6iAWq


Generated by Claude Code

claude added 2 commits October 1, 2026 22:49
…tion

Letter effects split a headline into letters and are driven by a property
setter on a timeline tween, since seek() suppresses onUpdate callbacks.
The wipe sweeps an accent bar across the screen and reveals the incoming
clip through its clip-path, keeping a crop intact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aSb67T7ns4nhVfrQ6iAWq
…te at all

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013aSb67T7ns4nhVfrQ6iAWq

Copy link
Copy Markdown
Owner Author

The test (24) job fails in test/demo-session.test.mjs and test/demo-web.test.mjs. Both fail because the browser in CI does not start: launchBrowser throws "De browser reageerde niet." and the session test gets back undefined.

This PR does not cause it:

I don't know of any fix for it yet, so I haven't ported anything into this PR. The template tests in this PR pass.


Generated by Claude Code

@tinygusie2
tinygusie2 marked this pull request as ready for review October 2, 2026 09:40
@tinygusie2
tinygusie2 merged commit 0f63ab4 into main Oct 2, 2026
0 of 4 checks passed
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.

2 participants