CartoonReaction
is a fun and interactive React component where a cartoon character reacts to your mouse movement. The character's gaze follows the cursor, and the buttons provide a playful way to interact with it.
Make sure you have Node.js installed, then run the following commands:
git clone https://github.com/CharcoalF/cartoon-game.git
cd cartoon-game
npm install
npm install framer-motion @shadcn/ui
npm run dev
Here’s a preview of how the CartoonReaction
component works:
- Mouse tracking: The cartoon character's gaze follows your cursor movement.
- Interactive buttons:
- The "Agree" button grows in size, making it more appealing.
- The "Reject" button shrinks and moves randomly, making it harder to click.
- User input interaction: A text input field lets users enter specific words to trigger Easter eggs.
- React - Component-based UI
- Tailwind CSS - Fast styling
- JavaScript - Handles interactivity
You can modify this component to fit your needs:
- Change the images: Replace the files in the
./img/
folder to customize the character's expressions. - Adjust the interactions: Modify button behavior, making it easier or harder to click.
- Style changes: Use Tailwind CSS to tweak colors, animations, or layouts to match your design.
Contributions are welcome! If you have ideas or bug fixes, feel free to submit a pull request. Please ensure your changes are well-tested before submitting.