brunnolou/react-morph ? reverse-engineered prompt
Reverse engineered prompt
Build me a small React library that makes it really easy to animate one element into another with a smooth morphing transition.
I want a simple hook called useMorph that I can spread onto two different elements, where only one is shown at a time, and when I toggle between them the change animates nicely instead of just swapping instantly. It should work with normal React state, feel lightweight, and be easy to drop into an existing app. Please include a couple of simple examples, like morphing an image from one size to another and a basic toggle demo.
Also set it up with a clean README style demo page so people can see how to use it quickly, and make sure the animation looks polished and GPU friendly. If you need to check current docs or best practices online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit