Description
An in-depth tutorial that teaches how to create one of the most adorable interactions I've ever created. We'll learn how to use React components and hooks to abstract behaviours, and see how to design ...
Summary
- A first stab The neat thing about component-driven frameworks like React is that we can package up behaviours in much the same way that we package UI elements.
- The useSpring hook can be thought of as one of those industrial machines that squirts the strawberry filling into pop-tarts: The prefers-reduced-motion hook will let us know if the user has expressed a preference to remove motion.
- This effect does indeed use the useBoop hook we've created, but it also involves some trigonometry, which is beyond the scope of this tutorial.