File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ "use client" ;
12import Carousel from "@/components/Carousel" ;
23import partners from "@/data/partners" ;
34import Heading from "../Heading" ;
45import Image from "next/image" ;
56import groupPhoto2 from "@/public/home/group2withdots.webp" ;
7+ import { motion } from "motion/react" ;
68
79const Partners = ( ) => {
810 return (
911 < >
1012 { /* TODO: Change this to subheading after its done */ }
1113 < Heading title = "Partners" />
1214 < Carousel data = { partners } />
13- < Image src = { groupPhoto2 } alt = "Group Photo 2" className = "w-1/2 pb-12" />
15+ < motion . div
16+ initial = { { opacity : 0.5 , scale : 0.5 } }
17+ whileInView = { { opacity : 1 , scale : 1 } }
18+ transition = { { type : "spring" , duration : 1 , bounce : 0.2 } }
19+ viewport = { { once : true } }
20+ className = "flex justify-center"
21+ >
22+ < Image src = { groupPhoto2 } alt = "Group Photo 2" className = "w-1/2 pb-12" />
23+ </ motion . div >
1424 </ >
1525 ) ;
1626} ;
You can’t perform that action at this time.
0 commit comments