Repository navigation
feat: Add animated hero scene with parallax and scroll reveals - #405
Merged
Merged
Conversation
Layered SVG mountain scene with scroll parallax, a trail that draws to a summit flag, drifting clouds, and staggered scroll reveals for homepage sections. All motion respects prefers-reduced-motion, degrades to a static scene without JS, and includes a pause control for looping scenery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDaEGxp3QbscPHqVTPXw8E
A small hiker walks the hero trail in sync with the draw animation and stops beside the summit flag. A generated topographic contour texture sits behind the homepage and drifts slightly with scroll progress. Includes scripts/generate-topo.js to regenerate the contour SVG from a seed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDaEGxp3QbscPHqVTPXw8E
…ortfolio, and Resume Move the topographic texture to every page, with its scroll drift in a small sitewide script. Rename landing.js to motion.js and make it opt-in via 'motion: true' front matter: page headers fade in and top-level content sections reveal on scroll, with card grids staggering card by card. Enabled on the homepage, About, Portfolio, and Resume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDaEGxp3QbscPHqVTPXw8E
Deploying adamj-github-io with
|
| Latest commit: |
6aff395
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://13ff16b6.adamj-github-io.pages.dev |
| Branch Preview URL: | https://claude-portfolio-animations.adamj-github-io.pages.dev |
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
Introduces an immersive landing page experience with an animated topographic background, parallax hero scene with trail-following hiker, and scroll-triggered content reveals. All motion is wrapped in
prefers-reduced-motionqueries for accessibility.Key Changes
Hero Scene Animation (
src/sass/_landing.scss,src/_includes/hero-scene.njk)--parallax,--depth)Topographic Background (
scripts/generate-topo.js,src/assets/img/topo.svg)--topo-shiftvariableMotion & Interactivity (
src/js/landing.js)getPointAtLength()Page Integration (
src/index.md,src/_includes/base.njk)bodyClassandpageScriptssupport to base templateImplementation Details
@media (prefers-reduced-motion: no-preference)blocks; users with reduced motion preferences see the finished static scenetransform-originandscale()to face direction of travelstroke-dashoffsetanimation with JS polling to sync hiker position--reveal-indexCSS variable for staggered timingwill-change: transformandtransform: translate3d()for GPU accelerationhttps://claude.ai/code/session_01WDaEGxp3QbscPHqVTPXw8E