pmndrs/react-spring ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript React animation library that uses spring physics for smooth, natural motion, kind of like the react spring project. I want the core experience to be simple, so a person can write a hook like useSpring with from and to values, then pass the animated styles into an animated div and see a fade or slide animate nicely.
Make it work across regular React web usage, and include support for 3D style usage too if that fits. It should feel easy for both declarative animations and more direct imperative control. Please include a small demo or example app so I can see common animations in action, plus enough documentation to explain how to install and use it. If you need to check the current ecosystem docs or best practices, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit