[Request] Be able to set spring config per value
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Comienza reproduciendo la necesidad de una configuración por valor en el CodeSandbox enlazado y leyendo el comportamiento actual de la API useSpring. Define cómo deben funcionar las configuraciones independientes de opacity y x dentro de un único spring y verifica que una API pueda controlar ambos valores con sus ajustes individuales.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🚀 Feature Proposal
The idea is to be able to set a spring config per value in a single useSpring.
Motivation + Example
I like to use a single useSpring per component where possible and when doing more complex motion design I need individual values to have their own spring config. This especially becomes important when the spring config is modified depending on the state of the app and user interactions. For example, I may have an opacity value that I want to always transition with a linear duration but an x value that toggles from being stiff to wobbly depending on its direction of motion (open or close).
Currently I have to make two springs to handle this case and then use their apis in sync.
Note: I thought I could use a useSpringRef for a single api to control both springs but I couldn't figure out how to change the config for individual springs this way.
Here is a sandbox: https://codesandbox.io/s/dreamy-turing-3kpom?file=/src/App.js
- Lenguaje dominante
- TypeScript
- Estrellas
- 29.3k
- Forks
- 1.2k
- Merge medio
- 3 d 15 h
- PR fusionados (30 d)
- 17
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pmndrs/react-spring
-
template: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
pmndrs/react-spring#2656 ·
Los mantenedores suelen responder en 1 día
-
Physics-level spring couplingAbiertoarea: core kind: request
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
pmndrs/react-spring#2542 ·
Los mantenedores suelen responder en 1 día
-
Remove `any` from public typesAbiertoarea: typescript kind: request release: major
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
pmndrs/react-spring#2541 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
release: major type: RFC
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pmndrs/react-spring#2522 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[bug]: Tab crash with skipAnimation and loopPosiblemente ocupada @mrityunjay-pandey la tomó hace 43 días. Abiertoarea: core kind: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
pmndrs/react-spring#2409 ·
Los mantenedores suelen responder en 1 día
Todos los issues de pmndrs/react-spring
Issues similares
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#34714 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
manaflow-ai/cmux#59692 ·
Los mantenedores suelen responder en 1 día
-
Retire stale Python-parity labels in Rust ingress and auth testsPosiblemente ocupada @github-actions la tomó hoy. Abiertofactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
JoshCLWren/comic-pile#5874 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area: community lane: free-agent priority: P1 roadmap type: task
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
velella-sh/offing#1046 ·
Los mantenedores suelen responder en 1 día