prefers-reduced-motion props

Aperta
#152 0 commenti 9 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
react, typescript

Direzione di ricerca

Start by locating the useRive hook and reviewing how it currently controls animation playback. Clarify whether reduced-motion behavior should pause, select a frame, or use a fallback image, and determine the expected prop API and test coverage. Done means the chosen behavior is defined and verified when prefers-reduced-motion is true.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature-request

Currently, animations are played regardless of the prefers-reduced-motion preferences. This can be an issue when working on accessibility.

Having a prop on the useRive hook that would control how the animation behaves when prefers-reduced-motion is true would be great. Besides, it could be great to define a frame or a fallback image when prefers-reduced-motion is true. This way it would be possible to display the first or last image or have a fallback image instead.

Lingua principale
TypeScript
Stelle
1.2k
Fork
58
Merge medio
3h 23m
PR unite (30g)
6

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rive-app/rive-react

Tutte le issue di rive-app/rive-react

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.