Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to pause background movement animation #39

Open
laxsjo opened this issue May 15, 2024 · 1 comment
Open

Add option to pause background movement animation #39

laxsjo opened this issue May 15, 2024 · 1 comment

Comments

@laxsjo
Copy link

laxsjo commented May 15, 2024

While the moving background visible on all pages (see example below) does look very cool and sexy, and I definitely think you should keep it, it can be quite distracting for certain kinds of users (including me), and is therefore an important accessibility feature.

It would be nice if there was an option to pause this animation. It would of course also be important that the state of this button (or however it is implemented) is remembered between page loads.

Here is an example of how it looks today:
bg-movement-example

@laxsjo
Copy link
Author

laxsjo commented May 15, 2024

I could definitely implement a solution myself if that is something you are open to. The codebase doesn't look that complicated. :)

The only question would be where to place the JavaScript for this. As it would require a non-trivial amount of code, inlining it in a script tag feels cumbersome, especially considering that this code would be duplicated across all routes then. Could this warrant a new separate JS file?

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

No branches or pull requests

1 participant