Switch landing-page logo morph to spiral path#1396
Merged
Conversation
The scroll-driven Makeability Lab logo animation previously used the
default straight-line (reverse-explosion) trajectory. Switch it to the
spiral path so the scattered triangles swirl inward around the logo
centroid as they assemble.
- Import spiralPath from the makelab js CDN dist (already exported).
- Add SPIRAL_TURNS config constant (extra revolutions; higher = more swirl).
- Call morpher.setPath(spiralPath({ turns })) once at creation; pathFunction
persists and each reset()/resetFromArt() re-prepares per-triangle path
data, so this covers both the default scatter and holiday-art modes.
prefers-reduced-motion behavior is unchanged (logo stays pinned assembled).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches the scroll-driven Makeability Lab logo animation on the landing page from the default straight-line reverse-explosion trajectory to a spiral path — the scattered triangles now swirl inward around the logo centroid as they assemble.
Matches the "Spiral" option in the MorphPaths demo.
Changes
All in
website/static/website/js/makelab-logo.js(JS only):spiralPathfrom the makelab js CDN dist (already exported there — no library version change needed).SPIRAL_TURNSconfig constant (extra revolutions each triangle sweeps; higher = more swirl, default1).morpher.setPath(spiralPath({ turns: SPIRAL_TURNS }))once at morpher creation.pathFunctionpersists and everyreset()/resetFromArt()re-prepares per-triangle path data, so this covers both the default scatter mode and the holiday-art easter egg.Notes
prefers-reduced-motionbehavior is unchanged — the logo stays pinned in its assembled end state with no scroll-driven morph.@main/dist/makelab.logo.js(pre-existing). Happy to switch to a tagged release if preferred.SPIRAL_TURNS(e.g.2for a more dramatic vortex,0.5for subtler).Testing
Verified locally at
http://localhost:8571/— scrolling down assembles the logo via the inward spiral. Confirmed the served static JS reflects the change.🤖 Generated with Claude Code