Skip to content

Commit 269b377

Browse files
committed
scroll animation attempt
1 parent 52c8158 commit 269b377

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/home/sections/About.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const About: React.FC = () => {
1313
const animatedSection = useRef<HTMLDivElement>(null);
1414
const parallaxBackground = useRef<HTMLDivElement>(null);
1515
const scrollChevronContainer = useRef<HTMLDivElement>(null);
16+
// const contentContainer = useRef<HTMLDivElement>(null);
1617

1718
useGSAP(() => {
1819
gsap.registerPlugin(ScrollTrigger);
@@ -37,6 +38,13 @@ const About: React.FC = () => {
3738
end: "bottom top",
3839
scrub: true,
3940
pin: true,
41+
// onEnter: () => {
42+
// gsap.to(window, {
43+
// duration: 1,
44+
// scrollTo: { y: contentContainer.current, offsetY: -200 },
45+
// ease: "power2.inOut",
46+
// });
47+
// },
4048
},
4149
});
4250

@@ -123,6 +131,7 @@ const About: React.FC = () => {
123131
<span className="font-semibold">CAD &amp; 3D Printing</span>, and{" "}
124132
<span className="font-semibold">homelab projects</span>.
125133
</p>
134+
{/* <div ref={contentContainer} className="block" /> */}
126135
</div>
127136
</div>
128137
</Section>

0 commit comments

Comments
 (0)