Skip to content

Conversation

@yutotakano
Copy link
Member

This PR includes two changes that make the home page feel smoother:

  1. Staggered category card fade-in animation (on browsers that support CSS sibling-index())
  2. Left margin on the navbar and the page content when the page has a scrollbar, in order to fix the "left-shifting" that happens when content becomes scrollable

These are subtle animations that I think improve the fluidity and smoothness of the platform.

The PR respects the prefers-reduced-motion preference and print mode. Any browsers without support for sibling-index will see only Change 2.

Screen Recording 2025-09-17 at 20 08 22

Before (see that the page/navbar shifts left & right, and see the abrupt category cards compared to the staggered ones above)

Screen Recording 2025-09-17 at 20 09 07

This fixes the navbar and the body shifting to the left on the home page
when the category cards load. The issue was also seen when navigating from
a short page like /search to a long page like the home page. One could
argue that it's a browser feature that users expect, but I argue that
this is a case where overriding the browser's behavior is worth it for
a smoother feel.
Filtering causes rapid changes in the list of categories. When each item
has a transition from opacity 0 to opacity 1, the result can look like
high-speed flickering.
@yutotakano yutotakano merged commit ea8bc9b into compsoc-edinburgh:master Oct 22, 2025
5 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.

1 participant