@@ -10,6 +10,7 @@ function Hero() {
1010 const subtitle = useRef ( null ) ;
1111 const subtitle2 = useRef ( null ) ;
1212 const date = useRef ( null ) ;
13+ const poster = useRef ( null ) ;
1314
1415 useEffect ( ( ) => {
1516 const ctx = gsap . context ( ( ) => {
@@ -19,7 +20,19 @@ function Hero() {
1920 . fromTo ( title1 . current , { opacity : 0 , y : 40 } , { opacity : 1 , y : 0 } , "-=0.8" )
2021 . fromTo ( subtitle . current , { opacity : 0 , y : 80 } , { opacity : 1 , y : 0 } , "-=0.6" )
2122 . fromTo ( subtitle2 . current , { opacity : 0 , y : 60 } , { opacity : 1 , y : 0 } , "-=0.5" )
22- . fromTo ( date . current , { opacity : 0 , y : 50 } , { opacity : 1 , y : 0 } , "-=0.4" ) ;
23+ . fromTo ( date . current , { opacity : 0 , y : 50 } , { opacity : 1 , y : 0 } , "-=0.4" )
24+ // Minimal fade-in animation for poster
25+ . fromTo (
26+ poster . current ,
27+ { opacity : 0 } ,
28+ {
29+ opacity : 1 ,
30+ duration : 1 ,
31+ ease : "power1.out" ,
32+ delay : 0.2 ,
33+ } ,
34+ "-=0.8"
35+ ) ;
2336 } , root ) ;
2437
2538 return ( ) => ctx . revert ( ) ;
@@ -89,7 +102,7 @@ function Hero() {
89102 </ a >
90103 </ div >
91104
92- { /* Poster Image
105+ { /* Poster Image // ✅ */ }
93106 < div ref = { poster } className = "z-10 order-1 lg:order-2 opacity-0" >
94107 < Image
95108 src = "/club-poster-cultural.png"
@@ -99,7 +112,7 @@ function Hero() {
99112 className = "w-[260px] sm:w-[340px] md:w-[420px] lg:w-[460px] object-contain rounded-2xl shadow-[0_0_40px_rgba(255,255,255,0.15)] border border-white/20 hover:shadow-[0_0_60px_rgba(255,255,255,0.4)] hover:scale-[1.03] transition-transform duration-300"
100113 draggable = "false"
101114 />
102- </div> */ }
115+ </ div >
103116 </ div >
104117 </ section >
105118 ) ;
0 commit comments