With just Tailwind CSS
Before using the Tailwind CSS implementation, add the following animation configurations to your Tailwind config file:
With Motion library
This version doesn't require any additional configuration as all animation logic is contained within the component.
Custom hooks
Only required if you're using server components:
Dependencies
Shared dependencies:
For the Motion example: