vuetifyjs / vuetifyjs/vuetify

[Feature Request] Control over animations (override for reduced-motion)

Open
#22,159 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C: Transitions framework T: enhancement
Dominant language
TypeScript
Stars
41k
Forks
7.1k
Avg merge
1d 21h
Merged PRs (30d)
11

Description

Problem to solve

It appears that many people dislike OS-level animations, but do not necessarily want all animations gone when browsing the web. Since v3.10.0, Vuetify drops all animations and transitions in response to prefers-reduced-motion without leaving any way to opt out.

Proposed solution
  • add reducedMotion: 'system' | 'always' | 'never' in global configuration, which could be passed to data-reduced-motion on the<body> (for CSS) and provided down the component tree (for JS)
  • expose it as reactive prop from useDisplay() or a dedicated useReducedMotion()

(inspired by Motion One)

Potentially separate issue(s):

  • restore fade in/out and color/background transitions (optionally as some config object for granular control, covering speed of VProgressCircular and maybe something more)
  • replace default transitions with fade in/out (with increased $reducedMotionFadeDuration: 1.2s)

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

The issue names global configuration, data-reduced-motion on the body, and useDisplay() or a dedicated useReducedMotion() composable, but no files or tests. Start by tracing those entry points and determine how the three configuration modes should affect CSS and component-tree behavior; done requires an agreed scope and tests for the selected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.