react-spring
react-spring copied to clipboard
toggle reverse on useTransitions
Why
It is not currently possible to reverse the order of the useTransition animation.
What
I changed the render transition function to allow an optional reverse prop and added the optional toggleReverse prop in the hook to change the transition ordering after every render.
Checklist
- [ ] Documentation updated
- [x] Demo added
- [x] Ready to be merged
This is an attempt to solve https://github.com/pmndrs/react-spring/issues/1794
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| react-spring-io | ✅ Ready (Inspect) | Visit Preview | Jul 18, 2022 at 10:02PM (UTC) |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 1d6f8483f1a0131b03bece8f622b204b4fc8e243:
| Sandbox | Source |
|---|---|
| spring-animating-auto | Configuration |
| spring-card | Configuration |
| spring-cards-stack | Configuration |
| spring-chain | Configuration |
| spring-css-keyframes | Configuration |
| spring-image-fade | Configuration |