Production Code Templates

Real-World Production Examples

Copy-pasteable full templates configured with Next.js App Router, E-commerce cards, editorial lookbooks, and continuous scroll portals.

3D Spatial & Horizon Physics

Planetary 3D Cylindrical Horizon Roll & Spatial Stacking

Trigonometric cylindrical drum pitch (θ = arcsin(Δy / R)), receding Z-depth (-R(1 - cosθ)), and atmospheric horizon lighting without scroll hijacking.

Full-Stack Architecture

Next.js 15+ App Router Global Transitions

Production template configuring layout.tsx and template.tsx with <Mo> links and zero hydration layout shifts.

E-Commerce & Storefronts

E-Commerce Product Card Unfold Transition

Smoothly expands a floating product grid item into a fullscreen product detail view using CardExpandPortal.

Editorial & Portfolio

Editorial Magazine Page Peel & Sheen

Combines LiquidSheenText header with DimensionalTunnelWarp for high-fashion digital lookbooks.

Continuous Scroll

Cinema Typography Scroll Dive Portal

Headline word acts as vector stencil mask that expands 60x as the user scrolls, plunging into next chapter.

3D Spatial & Horizon Physics

Planetary 3D Cylindrical Horizon Roll & Spatial Stacking

Trigonometric cylindrical drum pitch (θ = arcsin(Δy / R)), receding Z-depth (-R(1 - cosθ)), and atmospheric horizon lighting without scroll hijacking.

components/PlanetaryGallery.tsx
1'use client';
2
3import React from 'react';
4import {
5 MoHorizon,
6 MoHorizonItem,
7} from 'motion-organic/react';
8
9export default function PlanetaryGallery() {
10 return (
11 <MoHorizon radius={1400} perspective={1000} shading={true}>
12 <header className="py-24 px-8 text-center">
13 <span className="text-xs uppercase tracking-widest text-[#8ca800] font-bold">3D Cylindrical Horizon</span>
14 <h1 className="text-6xl font-bold tracking-tight mt-2">Planetary Orbital Feed</h1>
15 <p className="text-sm text-neutral-500 mt-2">
16 Cards curve over the virtual 1400px horizon drum in real perspective space.
17 </p>
18 </header>
19
20 {/* Grid of 3D Horizon Cards */}
21 <div className="grid grid-cols-1 md:grid-cols-2 gap-8 px-8 max-w-6xl mx-auto pb-32">
22 {/* 1. Curved 3D Pitch Section */}
23 <MoHorizonItem pitchFactor={1.2} depthFactor={1.0}>
24 <div className="rounded-3xl bg-neutral-900 text-white p-8 h-80 flex flex-col justify-end border border-neutral-800 shadow-2xl">
25 <span className="text-xs uppercase tracking-widest text-[#d9ed55]">Cylindrical Matrix</span>
26 <h3 className="text-2xl font-bold mt-1">Planetary Drum Roll</h3>
27 </div>
28 </MoHorizonItem>
29
30 {/* 2. Deep Spatial Perspective Layer */}
31 <MoHorizonItem radius={1100} depthFactor={1.6}>
32 <div className="rounded-3xl bg-neutral-100 p-8 h-80 flex flex-col justify-end border border-neutral-200 shadow-xl">
33 <span className="text-xs uppercase tracking-widest text-neutral-400">Atmospheric Light</span>
34 <h3 className="text-2xl font-bold mt-1">Receding Z-Depth Plane</h3>
35 </div>
36 </MoHorizonItem>
37
38 {/* 3. Full-width Horizon Showcase */}
39 <MoHorizonItem
40 pitchFactor={1.0}
41 depthFactor={1.3}
42 className="md:col-span-2"
43 >
44 <div className="rounded-3xl bg-gradient-to-br from-[#d9ed55] to-[#a8c91a] text-neutral-900 p-12 h-96 flex flex-col justify-end shadow-2xl">
45 <span className="text-xs uppercase tracking-widest font-bold">MoHorizon &amp; MoSpatial</span>
46 <h3 className="text-4xl font-extrabold mt-1">Complete 3D Horizon Roll Suite</h3>
47 </div>
48 </MoHorizonItem>
49 </div>
50 </MoHorizon>
51 );
52}