Skip to content

Commit 6c8c104

Browse files
committed
Animate contact page
1 parent 0d94df1 commit 6c8c104

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/pages/Contact.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1+
import { motion } from 'framer-motion';
12
import ContactDetails from '../components/contact/ContactDetails';
23
import ContactForm from '../components/contact/ContactForm';
34

45
const Contact = () => {
56
return (
6-
<div className="container mx-auto flex flex-col-reverse lg:flex-row py-5 lg:py-10 lg:mt-10">
7+
<motion.div
8+
initial={{ opacity: 0 }}
9+
animate={{ opacity: 1 }}
10+
exit={{ opacity: 0 }}
11+
className="container mx-auto flex flex-col-reverse lg:flex-row py-5 lg:py-10 lg:mt-10"
12+
>
713
<ContactForm />
814
<ContactDetails />
9-
</div>
15+
</motion.div>
1016
);
1117
};
1218

0 commit comments

Comments
 (0)