Skip to content

Commit

Permalink
IPK-14 removed only 3d in section
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben committed Dec 20, 2023
1 parent ac0b2b7 commit 809156b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function Home() {
<div className="background-blur is-bottom-left" />
</section>

{/* <Features /> */}
<Features />
<Experience />
<footer className="footer p-10 bg-base-100 text-base-content">
<aside>
Expand Down
5 changes: 2 additions & 3 deletions src/components/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const Features = () => {
});

const x = useTransform(scrollYProgress, [0.5, 1], ["0%", "-100%"]);
const opacity = useTransform(scrollYProgress, [0, 0.5, 0.6, 0.85, 0.9], [1, 1, 0.4, 0.4, 1]);

const text1Opacity = useTransform(scrollYProgress, [0.3, 0.4, 0.5], [0, 1, 0]);
const text1Y = useTransform(scrollYProgress, [0.3, 0.4, 0.5], ["30px", "0px", "-30px"]);
Expand All @@ -27,9 +26,9 @@ export const Features = () => {
return (
<section ref={targetRef} className="flex h-[300vh] flex-col items-center justify-start">
<div className="sticky top-[16.7vh] h-[66.8vh] px-16 text-2xl text-white [&_p]:w-[45rem] [&_p]:max-w-[90%]">
<motion.div style={{ x }} className="relative h-screen w-screen">
{/* <motion.div style={{ x }} className="relative h-screen w-screen">
<Spline scene="https://prod.spline.design/TwBXCflNDhiLkDMk/scene.splinecode" />
</motion.div>
</motion.div> */}
<motion.p
style={stylesWithCssVar({
opacity: text1Opacity,
Expand Down

0 comments on commit 809156b

Please sign in to comment.