File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ import projects from "../data/project.json";
22import { motion } from "framer-motion" ;
33
44const Projects = ( ) => {
5- const projectCardsVariants = ( duration : number ) => ( {
6- initial : { x : - 10 } ,
7- animate : {
8- x : [ 10 , - 10 ] ,
9- transition : {
10- duration : duration ,
11- ease : "linear" ,
12- repeat : Infinity ,
13- repeatType : "reverse" as "reverse" ,
14- } ,
15- } ,
16- } ) ;
5+ // const projectCardsVariants = (duration: number) => ({
6+ // initial: { x: -10 },
7+ // animate: {
8+ // x: [10, -10],
9+ // transition: {
10+ // duration: duration,
11+ // ease: "linear",
12+ // repeat: Infinity,
13+ // repeatType: "reverse" as "reverse",
14+ // },
15+ // },
16+ // });
1717 return (
1818 < div className = "mx-5 mt-20" >
1919 < motion . div
@@ -33,7 +33,7 @@ const Projects = () => {
3333 whileInView = { { opacity : 1 , y : 0 } }
3434 transition = { { duration : 1.0 } }
3535 viewport = { { once : true } }
36- variants = { projectCardsVariants ( project . iconVariants ) }
36+ // variants={projectCardsVariants(project.iconVariants)}
3737 animate = "animate"
3838 key = { project . id }
3939 className = "max-w-sm bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700"
You can’t perform that action at this time.
0 commit comments