processing / processing/p5.js-website

Consider using transitions or reduce use of JS in the nav links

Open
#477 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

Increasing Access

This could prevent layout shift and "flashing" on page navigation which could create a more continuous and easier-to-follow experience.

Most appropriate sub-area of p5.js?

All pages

Feature request details

The nav panel reloads on every navigation. This leads to a kind of "flashing" experience in that component. This is more noticeable in situations where the side links are numerous and take a while to populate like on Reference. I know that the related components were switched to Preact components in order to handle active resizing from desktop <-> mobile but I think it would be worth the effort to move these back to Astro components with scripts where possible. In my opinion, this would significantly improve look and feel.

An alternative option that could achieve something interesting is Astro View Transitions but those would warrant further testing as they have their own impact on look and feel.

This is in no way urgent but I just wanted to file an issue to indicate that I think more server-side rendering would be an improvement here. I'd be open to working on it at some point if the team agrees that this would be an improvement but it would likely be a month or so until I had the capacity to take it on

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/components/Nav/NavPanels.tsx and compare navigation on pages with many side links, especially Reference. Evaluate the Astro View Transitions option and the Astro/Preact approaches described in the issue; done means navigation no longer visibly flashes or shifts while desktop/mobile behavior remains usable.

Written by the indexing model from the issue text.

Assessment

Domain
accessibility, frontend, performance, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.