Skip to content

Conversation

@leonard84
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 11, 2025 15:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the AOS (Animate On Scroll) initialization to respect user accessibility preferences by detecting the prefers-reduced-motion media query and disabling animations when users have requested reduced motion in their system settings.

Key Changes:

  • Adds detection for the prefers-reduced-motion media query to honor user accessibility preferences
  • Refactors the inline query parameter check into a named variable for improved readability
  • Combines both conditions (user preference and URL parameter) to determine whether to disable AOS animations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leonard84 leonard84 enabled auto-merge (rebase) December 11, 2025 15:57
@leonard84 leonard84 disabled auto-merge December 11, 2025 15:57
@leonard84 leonard84 merged commit 9af116c into master Dec 11, 2025
3 checks passed
@leonard84 leonard84 deleted the respect-reduce-motion branch December 11, 2025 15:59
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.

2 participants