Skip to content

Commit e90bd0a

Browse files
committed
added framer motion to blog card
1 parent df484ef commit e90bd0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/component/pages/Blog.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { React } from "react";
22
import blogs from "../../json/Blogs.json";
33
import BlogCard from "../Blog/BlogCard";
44
import Layout from ".."
5+
import { motion } from 'framer-motion';
56

67
function Blog() {
78
return (
@@ -16,10 +17,12 @@ function Blog() {
1617

1718
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-10 my-6">
1819
{blogs.blogs.map((card, idx) => (
20+
<motion.div whileHover={{ scale: 1.05 }}>
1921
<BlogCard
2022
card={card}
2123
idx={idx}
2224
/>
25+
</motion.div>
2326
))}
2427
</div>
2528
</div>

0 commit comments

Comments
 (0)