Skip to content

Commit

Permalink
IPK-14 performance: optimised spline scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben committed Dec 19, 2023
1 parent 51235e6 commit 2ec0401
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export const Features = () => {
<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">
<Suspense fallback={<div>Loading...</div>}>
<Spline scene="https://prod.spline.design/TwBXCflNDhiLkDMk/scene.splinecode" />
</Suspense>
<Spline scene="https://prod.spline.design/TwBXCflNDhiLkDMk/scene.splinecode" />
</motion.div>
<motion.p
style={stylesWithCssVar({
Expand Down

0 comments on commit 2ec0401

Please sign in to comment.