Skip to content
Discussion options

You must be logged in to vote

To add a loading animation:
1. Create src/components/LoadingSpinner.js:
javascript<br>import { motion } from 'framer-motion';<br>const LoadingSpinner = () => (<br> <motion.div animate={{ rotate: 360 }} transition={{ repeat: Infinity, duration: 1 }} className="w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full" /><br>);<br>
2. Use in src/components/Window.js with a loading state.
3. Test with npm run dev.
4. Submit a pull request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ziqian-Huang0607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants