An immersive Next.js experience that turns a Rubik's Cube into a cinematic, scroll-driven motion piece. The project combines authentic cube mechanics, animated beat text, particle effects, and a premium dark visual style.
- Scroll-synced Rubik's Cube animation
- Authentic cube move logic and face rotation handling
- Dynamic beat overlays with titles and subtitles
- Loading screen with motion-based progress
- Particle effects layered behind the cube
- Premium, minimal UI built with Tailwind CSS and Framer Motion
- Next.js 14
- React 18
- TypeScript
- Tailwind CSS
- Framer Motion
src/app— app shell, layout, global styles, and homepagesrc/components/RubiksCubeSequence.tsx— scroll experience, beat overlays, and rendering loopsrc/lib/cubeEngine.ts— cube state, move definitions, and scroll-to-cube mappingsrc/lib/cubeRenderer.ts— canvas rendering and particle drawing
- Node.js 18 or newer
- npm
The homepage is split into three parts:
- A full-screen intro section
- A scrollable cube sequence with animated beat messages
- A closing outro section
As you scroll, the cube advances through a predefined move sequence and the overlay text updates to match each turn.
- Edit the cube moves and timing in
src/lib/cubeEngine.ts - Update the on-screen messages in
src/components/RubiksCubeSequence.tsx - Adjust the visual design in
src/app/globals.cssand the Tailwind classes in the components
This project can be deployed like any standard Next.js app.
npm run build
npm run startOr deploy it to a platform such as Vercel.
No license has been specified yet.