File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed
Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 1+ <script >
2+ export let title = " Projects" ;
3+ </script >
4+
5+ <div class =" projects-container" >
6+ <h1 >{title }</h1 >
7+ <p >Under Construction.</p >
8+ </div >
9+
10+ <style >
11+ .projects-container {
12+ min-height : calc (100vh - 64px );
13+ display : flex ;
14+ flex-direction : column ;
15+ align-items : center ;
16+ justify-content : center ;
17+ background : #f5f5f5 ;
18+ text-align : center ;
19+ padding : 2rem ;
20+ }
21+ h1 {
22+ margin-bottom : 0.5rem ;
23+ }
24+ p {
25+ font-size : 1.25rem ;
26+ color : #666 ;
27+ }
28+ </style >
Original file line number Diff line number Diff line change 2727 console .log (' Element found:' , itemEl);
2828
2929 // On mobile portrait, avoid horizontal transforms to prevent overflow
30- if (isMobilePortrait ()) {
31- gsap .set (itemEl, { x: 0 , opacity: 1 });
32- return ;
33- }
30+ const offset = isMobilePortrait () ? 15 : 50 ;
3431
3532 // Set initial state - slightly off-screen and invisible
3633 gsap .set (itemEl, {
37- x: side === " left" ? - 50 : 50 ,
34+ x: side === " left" ? - offset : offset ,
3835 opacity: 0
3936 });
4037
6057 hasAnimated = false ;
6158
6259 gsap .to (itemEl, {
63- x: side === " left" ? - 50 : 50 ,
60+ x: side === " left" ? - offset : offset ,
6461 opacity: 0 ,
6562 duration: 0.7 ,
6663 ease: " power2.in"
You can’t perform that action at this time.
0 commit comments