Next.js 15 Page Flipping Animation Issues

Context

I’m trying to port a React.js page flipping animation tutorial to Next.js 15 with TypeScript and Tailwind CSS. The project involves a 3D book model with animated page flips.

Current Issues

  1. Rectangle Frame Issue
  • The 3D model appears to be constrained within a rectangular frame, limiting its movement and presentation.

  • Expected: Model should have free movement without visible boundaries

  • Actual: Model is stuck within a rectangular frame

  1. Bone Deformation Problem
  • When attempting to modify a bone in the model:

    • Only the peripheral/outline of the model changes the mesh itself doesn’t deform as expected
  • Expected: Entire mesh should deform smoothly with bone movement

  • Actual: Only the outline changes, leaving the internal mesh unaffected

  1. Animation Styling Issue
  • CSS styles for the animation’s heading wrapper aren’t being applied correctly.
    Code Structure

Main Components

  • layout.tsx: Root layout with font configurations
  • Book.tsx: Main book component handling page rendering
  • Experience.tsx: 3D scene setup with lighting and controls
  • Page.tsx: Individual page component with bone and mesh setup
  • Landing.tsx: Canvas setup and UI integration
  • UI.tsx & HeadingWrapper.tsx: Animation and heading components

Here is the code :

layout.tsx:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const poppins = Poppins({
weight: ["100", "300", "400", "500", "600", "700", "900"],
subsets: ["latin"],
variable: "--font-poppins",
});
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "GPU ZONE"
};
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`flex justify-center items-center ${geistSans.variable} ${geistMono.variable} ${poppins.variable} antialiased main-bg`}
>
{children}
</body>
</html>
);
}
</code>
<code>const poppins = Poppins({ weight: ["100", "300", "400", "500", "600", "700", "900"], subsets: ["latin"], variable: "--font-poppins", }); const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: "GPU ZONE" }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode }>) { return ( <html lang="en" suppressHydrationWarning> <body className={`flex justify-center items-center ${geistSans.variable} ${geistMono.variable} ${poppins.variable} antialiased main-bg`} > {children} </body> </html> ); } </code>
const poppins = Poppins({
  weight: ["100", "300", "400", "500", "600", "700", "900"],
  subsets: ["latin"],
  variable: "--font-poppins",
});

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "GPU ZONE"
};

export default function RootLayout({
  children,
}: Readonly<{ children: React.ReactNode }>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body
        className={`flex justify-center items-center ${geistSans.variable} ${geistMono.variable} ${poppins.variable} antialiased main-bg`}
      >
          {children}
      </body>
    </html>
  );
}

page.tsx

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const Page = () => {
return (
<Landing/>
)
}
export default Page
</code>
<code>const Page = () => { return ( <Landing/> ) } export default Page </code>
const Page = () => {
  return (
    <Landing/>
  )
}

export default Page

/threeD/Book.tsx:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const Book = ({...props}) => {
return (
<group {...props}>
{
[...pages].map((item, index) => (
index===0?
<Page
position={[index * 0.15, 0, 0]}
key={index}
number={index}
{...item}
/>:null
))
}
</group>
)
}
export default Book
</code>
<code>const Book = ({...props}) => { return ( <group {...props}> { [...pages].map((item, index) => ( index===0? <Page position={[index * 0.15, 0, 0]} key={index} number={index} {...item} />:null )) } </group> ) } export default Book </code>
const  Book = ({...props}) => {
  return (
    <group {...props}>
      {
        [...pages].map((item, index) => (
          index===0?
          <Page
            position={[index * 0.15, 0, 0]}
            key={index}
            number={index}
            {...item}
          />:null
        ))
        
      }
    </group>
  )
}

export default  Book

Experience.tsx

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const Experience = () => {
return (
<>
<Book/>
<OrbitControls />
<Environment preset="studio"></Environment>
<directionalLight
position={[2, 5, 2]}
intensity={2.5}
castShadow
shadow-mapSize-width={2048}
shadow-mapSize-height={2048}
shadow-bias={-0.0001}
/>
<mesh position-y={-1.5} rotation-x={-Math.PI / 2} receiveShadow>
<planeGeometry args={[100, 100]} />
<shadowMaterial transparent opacity={0.2} />
</mesh>
</>
);
};
export default Experience
</code>
<code>const Experience = () => { return ( <> <Book/> <OrbitControls /> <Environment preset="studio"></Environment> <directionalLight position={[2, 5, 2]} intensity={2.5} castShadow shadow-mapSize-width={2048} shadow-mapSize-height={2048} shadow-bias={-0.0001} /> <mesh position-y={-1.5} rotation-x={-Math.PI / 2} receiveShadow> <planeGeometry args={[100, 100]} /> <shadowMaterial transparent opacity={0.2} /> </mesh> </> ); }; export default Experience </code>
const Experience = () => {
  return (
    <>
      <Book/>
      <OrbitControls />
      <Environment preset="studio"></Environment>
      <directionalLight
        position={[2, 5, 2]}
        intensity={2.5}
        castShadow
        shadow-mapSize-width={2048}
        shadow-mapSize-height={2048}
        shadow-bias={-0.0001}
      />
      <mesh position-y={-1.5} rotation-x={-Math.PI / 2} receiveShadow>
        <planeGeometry args={[100, 100]} />
        <shadowMaterial transparent opacity={0.2} />
      </mesh>
    </>
  );
};

export default Experience

threeD/Page.tsx

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const PAGE_WIDTH=1.28
const PAGE_HEIGHT=1.71
const PAGE_DEPTH= 0.003
const PAGE_SEGMENTS=5
const SEGMENT_WIDTH= PAGE_WIDTH/PAGE_SEGMENTS
const pageGeomtry= new THREE.BoxGeometry(
PAGE_WIDTH,
PAGE_HEIGHT,
PAGE_DEPTH,
PAGE_SEGMENTS,
2
)
pageGeomtry.translate(PAGE_WIDTH/2,0,0)
const position= pageGeomtry.attributes.position
const vertex= new THREE.Vector3()
const skinIndexes = []
const skinWeights = []
const whiteColor= new THREE.Color('white')
const pageMaterials=[
new THREE.MeshStandardMaterial(
{color:whiteColor}
),
new THREE.MeshStandardMaterial(
{
color:"#111"
}
),
new THREE.MeshStandardMaterial(
{
color:whiteColor
}
),
new THREE.MeshStandardMaterial(
{
color:whiteColor
}
),
new THREE.MeshStandardMaterial(
{
color:"pink"
}
),
new THREE.MeshStandardMaterial(
{
color:'blue'
}
)
]
for (let i=0;i<position.count ; i++){
vertex.fromBufferAttribute(position,1)
const x= vertex.x
const skinIndex= Math.max(0,Math.floor(x/SEGMENT_WIDTH))
let skinWeight= (x%SEGMENT_WIDTH)/SEGMENT_WIDTH
skinIndexes.push(skinIndex,skinIndex+1,0,0)
skinWeights.push(1-skinWeight,skinWeight,0,0)
}
pageGeomtry.setAttribute(
"skinIndex",
new THREE.Uint16BufferAttribute(skinIndexes,4)
)
pageGeomtry.setAttribute(
"skinWeight",
new THREE.Float32BufferAttribute(skinWeights,4)
)
const Page = ({ number, front, back, ...props }: { number: number; front: string; back: string } & React.ComponentProps<'group'>) => {
const pageRef = useRef<THREE.Group>(null)
const skinnedMeshRef = useRef(null as any);
const manualSkinnedMesh= useMemo(
()=>{
const bones=[]
for (let i=0;i<=PAGE_SEGMENTS;i++){
let bone= new THREE.Bone()
bones.push(bone)
if(i===0){
bone.position.x=0
}else{
bone.position.x=SEGMENT_WIDTH
}
if(i>0){
bones[i-1].add(bone)
}
}
const skeleton = new THREE.Skeleton(bones)
const materials= pageMaterials;
const mesh= new THREE.SkinnedMesh(pageGeomtry,materials)
mesh.castShadow=true
mesh.receiveShadow=true
mesh.frustumCulled=false
mesh.add(skeleton.bones[0])
mesh.bind(skeleton)
return mesh
},[]
)
useHelper(skinnedMeshRef, THREE.SkeletonHelper)
return (
<group ref={pageRef} {...props} >
<mesh>
<primitive object={manualSkinnedMesh} ref={skinnedMeshRef} />
</mesh>
</group>
)
}
export default Page
</code>
<code>const PAGE_WIDTH=1.28 const PAGE_HEIGHT=1.71 const PAGE_DEPTH= 0.003 const PAGE_SEGMENTS=5 const SEGMENT_WIDTH= PAGE_WIDTH/PAGE_SEGMENTS const pageGeomtry= new THREE.BoxGeometry( PAGE_WIDTH, PAGE_HEIGHT, PAGE_DEPTH, PAGE_SEGMENTS, 2 ) pageGeomtry.translate(PAGE_WIDTH/2,0,0) const position= pageGeomtry.attributes.position const vertex= new THREE.Vector3() const skinIndexes = [] const skinWeights = [] const whiteColor= new THREE.Color('white') const pageMaterials=[ new THREE.MeshStandardMaterial( {color:whiteColor} ), new THREE.MeshStandardMaterial( { color:"#111" } ), new THREE.MeshStandardMaterial( { color:whiteColor } ), new THREE.MeshStandardMaterial( { color:whiteColor } ), new THREE.MeshStandardMaterial( { color:"pink" } ), new THREE.MeshStandardMaterial( { color:'blue' } ) ] for (let i=0;i<position.count ; i++){ vertex.fromBufferAttribute(position,1) const x= vertex.x const skinIndex= Math.max(0,Math.floor(x/SEGMENT_WIDTH)) let skinWeight= (x%SEGMENT_WIDTH)/SEGMENT_WIDTH skinIndexes.push(skinIndex,skinIndex+1,0,0) skinWeights.push(1-skinWeight,skinWeight,0,0) } pageGeomtry.setAttribute( "skinIndex", new THREE.Uint16BufferAttribute(skinIndexes,4) ) pageGeomtry.setAttribute( "skinWeight", new THREE.Float32BufferAttribute(skinWeights,4) ) const Page = ({ number, front, back, ...props }: { number: number; front: string; back: string } & React.ComponentProps<'group'>) => { const pageRef = useRef<THREE.Group>(null) const skinnedMeshRef = useRef(null as any); const manualSkinnedMesh= useMemo( ()=>{ const bones=[] for (let i=0;i<=PAGE_SEGMENTS;i++){ let bone= new THREE.Bone() bones.push(bone) if(i===0){ bone.position.x=0 }else{ bone.position.x=SEGMENT_WIDTH } if(i>0){ bones[i-1].add(bone) } } const skeleton = new THREE.Skeleton(bones) const materials= pageMaterials; const mesh= new THREE.SkinnedMesh(pageGeomtry,materials) mesh.castShadow=true mesh.receiveShadow=true mesh.frustumCulled=false mesh.add(skeleton.bones[0]) mesh.bind(skeleton) return mesh },[] ) useHelper(skinnedMeshRef, THREE.SkeletonHelper) return ( <group ref={pageRef} {...props} > <mesh> <primitive object={manualSkinnedMesh} ref={skinnedMeshRef} /> </mesh> </group> ) } export default Page </code>
const PAGE_WIDTH=1.28
const PAGE_HEIGHT=1.71
const PAGE_DEPTH= 0.003

const PAGE_SEGMENTS=5


const SEGMENT_WIDTH= PAGE_WIDTH/PAGE_SEGMENTS
const pageGeomtry= new THREE.BoxGeometry(
  PAGE_WIDTH,
  PAGE_HEIGHT,
  PAGE_DEPTH,
  PAGE_SEGMENTS,
  2
)

pageGeomtry.translate(PAGE_WIDTH/2,0,0)

const position= pageGeomtry.attributes.position
const vertex= new THREE.Vector3()
const skinIndexes = []
const skinWeights = []


const whiteColor= new THREE.Color('white')
const pageMaterials=[
  new THREE.MeshStandardMaterial(
  {color:whiteColor}
  ),
  new THREE.MeshStandardMaterial(
    {
      color:"#111"
    }
  ),
  new THREE.MeshStandardMaterial(
    {
      color:whiteColor
    }
  ),
  new THREE.MeshStandardMaterial(
    {
      color:whiteColor
    }
  ),
  new THREE.MeshStandardMaterial(
    {
      color:"pink"
    }
  ),
  new THREE.MeshStandardMaterial(
    {
      color:'blue'
    }
  )
]

for (let i=0;i<position.count ; i++){
  vertex.fromBufferAttribute(position,1)
  const x= vertex.x
  const skinIndex= Math.max(0,Math.floor(x/SEGMENT_WIDTH))
  let skinWeight= (x%SEGMENT_WIDTH)/SEGMENT_WIDTH
  skinIndexes.push(skinIndex,skinIndex+1,0,0)
  skinWeights.push(1-skinWeight,skinWeight,0,0)
}

pageGeomtry.setAttribute(
  "skinIndex",
  new THREE.Uint16BufferAttribute(skinIndexes,4)
)

pageGeomtry.setAttribute(
  "skinWeight",
  new THREE.Float32BufferAttribute(skinWeights,4)
)


const Page = ({ number, front, back, ...props }: { number: number; front: string; back: string } & React.ComponentProps<'group'>) => {
  const pageRef = useRef<THREE.Group>(null)
  const skinnedMeshRef = useRef(null as any);
const manualSkinnedMesh= useMemo(
    ()=>{
      const bones=[]
      for (let i=0;i<=PAGE_SEGMENTS;i++){
        let bone= new THREE.Bone()
        bones.push(bone)
        if(i===0){
          bone.position.x=0
        }else{
          bone.position.x=SEGMENT_WIDTH
        }

        if(i>0){
          bones[i-1].add(bone)
        } 
     }
     const skeleton = new THREE.Skeleton(bones)
     const materials= pageMaterials;
     const mesh= new THREE.SkinnedMesh(pageGeomtry,materials)
     mesh.castShadow=true
     mesh.receiveShadow=true
     mesh.frustumCulled=false
     mesh.add(skeleton.bones[0])
     mesh.bind(skeleton)
     return mesh
    },[]
  )
  useHelper(skinnedMeshRef, THREE.SkeletonHelper)
  return (
    <group ref={pageRef} {...props} >
      <mesh>
        <primitive object={manualSkinnedMesh} ref={skinnedMeshRef}  />
      </mesh>
    </group>
  )
}

export default Page

Landing.tsx

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>"use client"
const Landing = () => {
return (
<>
<UI></UI>
<Loader/>
<Canvas shadows camera={{ position: [-0.5, 1, 4], fov: 45 }}>
<group position-y={0}>
<Suspense fallback={null}>
<Experience />
</Suspense>
</group>
</Canvas>
</>
)
}
export default Landing
</code>
<code>"use client" const Landing = () => { return ( <> <UI></UI> <Loader/> <Canvas shadows camera={{ position: [-0.5, 1, 4], fov: 45 }}> <group position-y={0}> <Suspense fallback={null}> <Experience /> </Suspense> </group> </Canvas> </> ) } export default Landing </code>
"use client"
const Landing = () => {
  return (
    <>
      <UI></UI>
      <Loader/>
      <Canvas shadows camera={{ position: [-0.5, 1, 4], fov: 45 }}>
        <group position-y={0}>
          <Suspense fallback={null}>
            <Experience />
          </Suspense>
        </group>
      </Canvas>
    </>
  )
}

export default Landing

Now moving on to the Heading issue :

UI.tsx:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>export const pageAtom = atom(0);
export const UI = () => {
const [page, setPage] = useAtom(pageAtom);
return (
<>
<main className=" pointer-events-none select-none z-10 fixed inset-0 flex justify-between flex-col">
<a
className="pointer-events-auto mt-10 ml-10"
href=""
>
</a>
<div className="w-full overflow-auto pointer-events-auto flex justify-center">
<div className="overflow-auto flex items-center gap-4 max-w-full p-10">
{[...pages].map((_, index) => (
<button
key={index}
className={`border-transparent hover:border-white transition-all duration-300 px-4 py-3 rounded-full text-lg uppercase shrink-0 border ${
index === page
? "bg-white/90 text-black"
: "bg-black/30 text-white"
}`}
onClick={() => setPage(index)}
>
{index === 0 ? "Cover" : `Page ${index}`}
</button>
))}
<button
className={`border-transparent hover:border-white transition-all duration-300 px-4 py-3 rounded-full text-lg uppercase shrink-0 border ${
page === pages.length
? "bg-white/90 text-black"
: "bg-black/30 text-white"
}`}
onClick={() => setPage(pages.length)}
>
Back Cover
</button>
</div>
</div>
</main>
<div className="fixed inset-0 flex items-center -rotate-2 select-none ">
<div className="relative">
<HeadingWrapper styling="bg-white/0 animate-horizontal-scroll flex items-center gap-8 w-max px-8"></HeadingWrapper>
<HeadingWrapper styling="absolute top-0 left-0 bg-white/0 animate-horizontal-scroll-2 flex items-center gap-8 px-8 w-max"></HeadingWrapper>
</div>
</div>
</>
);
};
</code>
<code>export const pageAtom = atom(0); export const UI = () => { const [page, setPage] = useAtom(pageAtom); return ( <> <main className=" pointer-events-none select-none z-10 fixed inset-0 flex justify-between flex-col"> <a className="pointer-events-auto mt-10 ml-10" href="" > </a> <div className="w-full overflow-auto pointer-events-auto flex justify-center"> <div className="overflow-auto flex items-center gap-4 max-w-full p-10"> {[...pages].map((_, index) => ( <button key={index} className={`border-transparent hover:border-white transition-all duration-300 px-4 py-3 rounded-full text-lg uppercase shrink-0 border ${ index === page ? "bg-white/90 text-black" : "bg-black/30 text-white" }`} onClick={() => setPage(index)} > {index === 0 ? "Cover" : `Page ${index}`} </button> ))} <button className={`border-transparent hover:border-white transition-all duration-300 px-4 py-3 rounded-full text-lg uppercase shrink-0 border ${ page === pages.length ? "bg-white/90 text-black" : "bg-black/30 text-white" }`} onClick={() => setPage(pages.length)} > Back Cover </button> </div> </div> </main> <div className="fixed inset-0 flex items-center -rotate-2 select-none "> <div className="relative"> <HeadingWrapper styling="bg-white/0 animate-horizontal-scroll flex items-center gap-8 w-max px-8"></HeadingWrapper> <HeadingWrapper styling="absolute top-0 left-0 bg-white/0 animate-horizontal-scroll-2 flex items-center gap-8 px-8 w-max"></HeadingWrapper> </div> </div> </> ); }; </code>
export const pageAtom = atom(0);

export const UI = () => {
  const [page, setPage] = useAtom(pageAtom);
  
  return (
  <>
    <main className=" pointer-events-none select-none z-10 fixed  inset-0  flex justify-between flex-col">
      <a
        className="pointer-events-auto mt-10 ml-10"
        href=""
      >
      </a>
      <div className="w-full overflow-auto pointer-events-auto flex justify-center">
        <div className="overflow-auto flex items-center gap-4 max-w-full p-10">
          {[...pages].map((_, index) => (
            <button
              key={index}
              className={`border-transparent hover:border-white transition-all duration-300  px-4 py-3 rounded-full  text-lg uppercase shrink-0 border ${
                index === page
                  ? "bg-white/90 text-black"
                  : "bg-black/30 text-white"
              }`}
              onClick={() => setPage(index)}
            >
              {index === 0 ? "Cover" : `Page ${index}`}
            </button>
          ))}
          <button
            className={`border-transparent hover:border-white transition-all duration-300  px-4 py-3 rounded-full  text-lg uppercase shrink-0 border ${
              page === pages.length
                ? "bg-white/90 text-black"
                : "bg-black/30 text-white"
            }`}
            onClick={() => setPage(pages.length)}
          >
            Back Cover
          </button>
        </div>
      </div>
    </main>

      <div className="fixed inset-0 flex items-center -rotate-2 select-none ">
        <div className="relative">
          <HeadingWrapper styling="bg-white/0  animate-horizontal-scroll flex items-center gap-8 w-max px-8"></HeadingWrapper>
          <HeadingWrapper styling="absolute top-0 left-0 bg-white/0 animate-horizontal-scroll-2 flex items-center gap-8 px-8 w-max"></HeadingWrapper>
        </div>
      </div>
    </>
  );
};

HeadingWrapper.tsx

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>type HeadingWrapperProps = {
styling: string;
};
const HeadingWrapper: React.FC<HeadingWrapperProps> = ({ styling }) => (
<div className={styling}>
{array_ts.map((item, index) =>
React.createElement(item.type, { key: index, className: item.styling }, item.text)
)}
</div>
);
export default HeadingWrapper;
</code>
<code>type HeadingWrapperProps = { styling: string; }; const HeadingWrapper: React.FC<HeadingWrapperProps> = ({ styling }) => ( <div className={styling}> {array_ts.map((item, index) => React.createElement(item.type, { key: index, className: item.styling }, item.text) )} </div> ); export default HeadingWrapper; </code>
type HeadingWrapperProps = {
  styling: string;
};

const HeadingWrapper: React.FC<HeadingWrapperProps> = ({ styling }) => (
  <div className={styling}>
    {array_ts.map((item, index) =>
      React.createElement(item.type, { key: index, className: item.styling }, item.text)
    )}
  </div>
);

export default HeadingWrapper;

HeadingWrapper.ts

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>const headingsArray= [
{ type: "h1", styling: "shrink-0 text-white text-10xl font-black", text: "Welcome" },
{ type: "h2", styling: "shrink-0 text-white text-8xl italic font-light", text: "To" },
{ type: "h2", styling: "shrink-0 text-white text-12xl font-bold", text: "GPU" },
{ type: "h2", styling: "shrink-0 text-transparent text-12xl font-bold italic outline-text", text: "Zone" },
{ type: "h2", styling: "shrink-0 text-white text-9xl font-medium", text: "One Stop" },
{ type: "h2", styling: "shrink-0 text-white text-9xl font-extralight italic", text: "Solution" },
{ type: "h2", styling: "shrink-0 text-white text-13xl font-bold", text: "For All Your Queries" },
{ type: "h2", styling: "shrink-0 text-transparent text-13xl font-bold outline-text italic", text: "Regarding" },
{ type: "h1", styling: "shrink-0 text-transparent text-15xl font-black italic outline-text metallic-text", text: "GPU PROGRAMMING" }
];
export default headingsArray
</code>
<code>const headingsArray= [ { type: "h1", styling: "shrink-0 text-white text-10xl font-black", text: "Welcome" }, { type: "h2", styling: "shrink-0 text-white text-8xl italic font-light", text: "To" }, { type: "h2", styling: "shrink-0 text-white text-12xl font-bold", text: "GPU" }, { type: "h2", styling: "shrink-0 text-transparent text-12xl font-bold italic outline-text", text: "Zone" }, { type: "h2", styling: "shrink-0 text-white text-9xl font-medium", text: "One Stop" }, { type: "h2", styling: "shrink-0 text-white text-9xl font-extralight italic", text: "Solution" }, { type: "h2", styling: "shrink-0 text-white text-13xl font-bold", text: "For All Your Queries" }, { type: "h2", styling: "shrink-0 text-transparent text-13xl font-bold outline-text italic", text: "Regarding" }, { type: "h1", styling: "shrink-0 text-transparent text-15xl font-black italic outline-text metallic-text", text: "GPU PROGRAMMING" } ]; export default headingsArray </code>
const headingsArray= [
    { type: "h1", styling: "shrink-0 text-white text-10xl font-black", text: "Welcome" },
    { type: "h2", styling: "shrink-0 text-white text-8xl italic font-light", text: "To" },
    { type: "h2", styling: "shrink-0 text-white text-12xl font-bold", text: "GPU" },
    { type: "h2", styling: "shrink-0 text-transparent text-12xl font-bold italic outline-text", text: "Zone" },
    { type: "h2", styling: "shrink-0 text-white text-9xl font-medium", text: "One Stop" },
    { type: "h2", styling: "shrink-0 text-white text-9xl font-extralight italic", text: "Solution" },
    { type: "h2", styling: "shrink-0 text-white text-13xl font-bold", text: "For All Your Queries" },
    { type: "h2", styling: "shrink-0 text-transparent text-13xl font-bold outline-text italic", text: "Regarding" },
    { type: "h1", styling: "shrink-0 text-transparent text-15xl font-black italic outline-text metallic-text", text: "GPU PROGRAMMING" }
  ];


  export default headingsArray

Summary Question

Could someone help identify why my Next.js 15 page-flipping animation is experiencing three simultaneous issues: the 3D model being confined to a rectangular frame, bone deformations only affecting the model’s outline instead of the entire mesh, and CSS animation styles not being properly applied to the heading wrapper? I’m particularly interested in understanding if these issues are related to the Three.js implementation in Next.js or if they stem from my TypeScript/Tailwind CSS integration.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật