Skip to content

Commit 6f56b0d

Browse files
committed
More motion effects
1 parent fc7deb4 commit 6f56b0d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/components/projects/ProjectSingle.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ const ProjectSingle = ({ title, category, image }) => {
66
<motion.div
77
initial={{ opacity: 0 }}
88
animate={{ opacity: 1, delay: 1 }}
9-
exit={{ opacity: 0 }}
9+
transition={{
10+
ease: 'easeInOut',
11+
duration: 0.7,
12+
delay: 0.15,
13+
}}
1014
>
1115
<Link
1216
to="/projects/single-project"

src/pages/Contact.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const Contact = () => {
77
<motion.div
88
initial={{ opacity: 0 }}
99
animate={{ opacity: 1 }}
10-
exit={{ opacity: 0 }}
10+
transition={{
11+
ease: 'easeInOut',
12+
duration: 0.5,
13+
delay: 0.1,
14+
}}
1115
className="container mx-auto flex flex-col-reverse lg:flex-row py-5 lg:py-10 lg:mt-10"
1216
>
1317
<ContactForm />

src/pages/ProjectSingle.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const ProjectSingle = () => {
1010
<motion.div
1111
initial={{ opacity: 0 }}
1212
animate={{ opacity: 1, delay: 1 }}
13-
exit={{ opacity: 0 }}
13+
transition={{
14+
ease: 'easeInOut',
15+
duration: 0.6,
16+
delay: 0.15,
17+
}}
1418
className="container mx-auto mt-5 sm:mt-10"
1519
>
1620
<SingleProjectProvider>

0 commit comments

Comments
 (0)