Skip to content

fix: remove intro animation from masthead and nav#158

Merged
maxandersen merged 3 commits into
jbangdev:mainfrom
maxandersen:fix/remove-remaining-intro-animations
May 14, 2026
Merged

fix: remove intro animation from masthead and nav#158
maxandersen merged 3 commits into
jbangdev:mainfrom
maxandersen:fix/remove-remaining-intro-animations

Conversation

@maxandersen
Copy link
Copy Markdown
Contributor

The opacity:0→1 intro animation with fill-mode:both causes content to be invisible until the animation fires. On Windows and with prefers-reduced-motion, this can leave the nav and title clipped or partially hidden — 'AppStore' renders as '.ppStore', hero title gets cut off on the left.

image

Completes the animation removal started in #157 (which removed it from #main and .page__hero but missed masthead and nav).

The opacity:0→1 intro animation with fill-mode:both causes content
to be invisible until the animation fires. On Windows and with
prefers-reduced-motion, this can leave the nav and title clipped
or partially hidden — 'AppStore' renders as '.ppStore', hero title
gets cut off on the left.

Completes the animation removal started in the perf PR (which
removed it from #main and .page__hero but missed masthead and nav).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

🙈 The PR is closed and the preview is expired.

The masthead HTML had greedy nav structure (.visible-links,
.hidden-links, .greedy-nav__toggle) but no JavaScript to actually
move overflowing items into the hamburger dropdown. On narrow
screens/Windows, nav items were silently clipped by overflow:hidden.

- Add public/assets/js/greedy-nav.js that measures item widths
  on load and moves overflow items to the dropdown
- Constrain search input width (10em, min 6em) so nav links
  get more space
- Toggle button appears/disappears based on available width
- Dropdown opens on click, closes on outside click
Check total width against available space first. Only subtract
toggle button reserve when items actually need to be hidden.
@maxandersen maxandersen merged commit a95661b into jbangdev:main May 14, 2026
3 checks passed
@maxandersen maxandersen deleted the fix/remove-remaining-intro-animations branch May 14, 2026 16:08
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