[3798b7]: / client / src / components / Loader.jsx

Download this file

25 lines (22 with data), 567 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from 'react';
import { motion } from 'framer-motion';
const Loader = () => {
return (
<div className="flex flex-col justify-center items-center h-64">
<motion.div
className="w-12 h-12 rounded-full bg-purple-500"
animate={{
scale: [1, 1.5, 1],
opacity: [1, 0.5, 1],
}}
transition={{
duration: 1.5,
ease: "easeInOut",
repeat: Infinity,
}}
/>
<p className="mt-4 text-purple-500">Loading data...</p>
</div>
);
};
export default Loader;