A React-based swiping application that allows users to find their favorite cats using the CATAAS API.
- Dating App-style Swipe: Smooth card animations with rotation logic.
- Image Preloading: Next images are loaded in the background for a zero-lag experience.
- Favorites Gallery: A summary screen showing all "Liked" cats at the end of the stack.
- Gesture Logic: Built with Pointer Events for seamless Mobile & Desktop support.
- UX Optimization: Implemented swipe thresholds to prevent accidental triggers.
- React.js (Vite)
- CSS-in-JS (Inline Styles for dynamic animations)
- CATAAS API (Cat as a Service)
- Clone the repository.
- Run
npm installto install dependencies. - Run
npm run devto start the local server.
To test the swiping experience on a physical mobile device:
- Ensure your computer and phone are connected to the same Wi-Fi network.
- Run the server using the host flag:
npm run dev -- --host
- Open the Network URL displayed in your terminal (e.g., http://192.168.1.xx:5173) on your phone's browser.