[Feature Request] Control over animations (override for reduced-motion)
Nobody has claimed this yet.
- 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 todata-reduced-motionon the<body>(for CSS) and provided down the component tree (for JS) - expose it as reactive prop from
useDisplay()or a dedicateduseReducedMotion()
(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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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