react-spring icon indicating copy to clipboard operation
react-spring copied to clipboard

toggle reverse on useTransitions

Open Supersteve128 opened this issue 3 years ago • 2 comments

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

Supersteve128 avatar May 19 '22 00:05 Supersteve128

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)

vercel[bot] avatar May 19 '22 00:05 vercel[bot]

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

codesandbox-ci[bot] avatar May 19 '22 00:05 codesandbox-ci[bot]