[feat] animate home

This commit is contained in:
Alvalen 2023-09-03 11:21:56 +07:00
parent 0be22beae3
commit f0fcfe6124
5 changed files with 293 additions and 101 deletions

38
components/Hr.jsx Normal file
View file

@ -0,0 +1,38 @@
import { motion } from "framer-motion";
export default function Hr() {
return (
<div className="flex justify-center items-center flex-col my-5 ">
<motion.div
className="bg-gray-700 w-20 h-1 rounded-full mb-2"
initial={{
opacity: 0,
x: -100,
}}
whileInView={{
opacity: 1,
x: 0,
}}
transition={{
delay: 0.2,
type: "spring",
}}></motion.div>
<motion.div
className="bg-gray-700 w-20 h-1 rounded-full "
initial={{
opacity: 0,
x: 150,
}}
whileInView={{
opacity: 1,
x: 40,
}}
transition={{
delay: 0.3,
type: "spring",
}}></motion.div>
</div>
);
}