nextcloud-libraries / nextcloud-libraries/nextcloud-vue

Reduced motion sickness animations

Open
#7,635 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
246
Forks
99
Avg merge
1d 20h
Merged PRs (30d)
103

Description

In many places of Nextcloud, motion sickness is induced, for example:

  • loading icons
  • modal loadings (they grow a bit when opened)
  • app navigation bar moving upwards when hovered
  • Scrolling
  • and more I may have not seen yet

Solution:
There is a setting for “reduced motion animations available on every operating system which should be respected by the library.
This website explains how to do it and where to find the settings on each OS: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion

As an example, I made this change for custom animations in Assistant in this PR: https://github.com/nextcloud/assistant/pull/365

Not all animations are inducing motion sickness, only things that move parts of the website in relation to other parts, or animations that “move” a color gradient. Elements appearing or fading are fine in that regard and can still be used, also as a replacement if the setting is activated. If the movement is supposed to trasmit essential information to the user, it should not be just removed but be replaced by something else transferring that information (which can also be a color, an icon, …)

Contributor guide

Open the contributing guide

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

No files or tests are named. Start by inventorying the library's motion-producing animations and review the linked MDN guidance and Assistant example; done means motion-sensitive animations respect prefers-reduced-motion while essential information remains available through another cue.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.