Skip to content

Commit 70a5b13

Browse files
committed
remove animations
1 parent aea4e71 commit 70a5b13

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/components/Projects.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import projects from "../data/project.json";
22
import { motion } from "framer-motion";
33

44
const 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"

0 commit comments

Comments
 (0)