[feat]: Native ability to switch to a new "idle" (looped) animation after the first (entrance) animation completes

Aperta
#2,062 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia esaminando l’API useSpring esistente e gli esempi di animazione, in particolare come viene gestito il completamento dell’animazione iniziale from/to. Determina la forma dell’API supportata per un’animazione idle in loop e definisci un esempio rappresentativo di entrance-to-idle. Il lavoro è completato quando il comportamento e l’API sono implementati e la sezione degli esempi dimostra la transizione senza soluzione di continuità.

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

Descrizione

template: request
A clear and concise description of what the feature is

I'd like to be able to add an "idle" animation, perhaps which accepts another useSpring-defined variable, or a from and to (or any other way which makes sense).

The idea would be to loop this animation once the initial "from" and "to" has completed.

Why should this feature be included?

Whether or not there is already a recommended way to go about doing this then it would be really great to see something like this in the examples section, since I imagine a lot of people would benefit from the ability to have their animations seamlessly transition from the "entrance" animation to an "idle" (looped) animation.

Please provide an example for how this would work

An "idle" animation (e.g. idle useSpring prop), perhaps which accepts another useSpring-defined variable, or a from and to (or any other way which makes sense).

Kindest Regards,
Jay

P.S. I have not been able to join via the Discord link, it might be worth creating a new invite link.

Lingua principale
TypeScript
Stelle
29.3k
Fork
1.2k
Merge medio
3g 15h
PR unite (30g)
17

Preparare l'ambiente

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 pmndrs/react-spring

Tutte le issue di pmndrs/react-spring

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.