Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Respect reduced motion settings #18

Closed
sarayourfriend opened this issue Jul 10, 2022 · 1 comment · Fixed by #19
Closed

Respect reduced motion settings #18

sarayourfriend opened this issue Jul 10, 2022 · 1 comment · Fixed by #19
Labels
enhancement New feature or request

Comments

@sarayourfriend
Copy link
Contributor

sarayourfriend commented Jul 10, 2022

While the minimalist homepage is quite pleasant, the movement on it can be jarring for some folks. For these cases there is the prefers-reduced-motion media query that can be used to develop alternative (usually much more minimal to no) animations.

Originally I had overcomplicated the potential solution (you can see it in the revisions of this issue). There is a simple fix though: wait until the user submits the query, just like other forms. At this point, move the search bar. With reduced motion enabled, pop the search bar up to the top without a transition. This will solve the movement and will also remove the possibility that the movement happens while you are typing, as in the video below.

mwmbl-motion-mid-typing.mp4

Anyway, love the project! I will be following it closely. If you ever want to pop over to Openverse we're also doing a non-profit search engine thing, though admittedly with a specific niche and goal in mind.

Also, if you're happy to accept a PR and any have suggestions for which solution you'd like to see implemented, I'd be glad to take a go at it 🙂

@ColinEspinas
Copy link
Contributor

Adding support for prefers-reduced-motion is definitely something we would want to implement. You are free to submit any PR to the project concerning this feature or any other idea.

Thanks for this issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants