I'll create an interactive origami guide. Let me start by exploring the project structure.
Now let me build the origami guide. I'll update the title and create the data/component structure.
Now let me create the origami models data file with detailed step-by-step folds and crease patterns.
Now let me create the reusable components: PaperPreview, CreasePattern, FoldingDemo, and StepViewer.
Minor lint issue — f is used but flagged; let me check. Actually the error is a false positive from a shadow. Let me look — the morph function uses f. The lint says line 101 which is inside resample. That's the fr var... Actually it's referring to the parameter. Let me just rename to avoid confusion — the issue is likely the outer morph's f param not detected. Let me verify it's actually used.
The f in morph IS used. The error points to line 101 col 22 — that's within resample. Let me re-check the file structure; the error may be stale. Let me create the StepViewer and main App, then build to confirm.
The error persists in FoldingDemo. Let me look at the exact lines around 95-105.
The f param is used. The lint error is likely stale from the earlier version. Let me now create the App and build to verify.
Let me check line 101 of FoldingDemo — there must be a leftover f.
The f in the .map((f, idx) is unused. Let me fix it.
The build succeeded. I've created a complete interactive origami guide called Oritori.
What's included
6 origami models (Paper Crane, Sailing Boat, Folded Heart, Lucky Star, Sitting Fox, Masu Box), each with its own difficulty, time estimate, fold count, and color scheme — selectable from a card grid.
For each model, four interactive panels:
-
Paper preview — a 3D flip card showing the front and back colors of the paper with a textured pattern; click to flip.
-
Crease pattern — an accurate SVG crease diagram on a unit square, with color-coded mountain folds (red dash-dot) and valley folds (blue dashes) plus a legend.
-
Step-by-step folds — illustrated SVG diagrams for each fold with red directional arrows, a numbered progress bar, instruction text, and Previous/Next navigation ending in a "Complete!" state.
-
Animated folding demo — a smoothly morphing polygon that tweens between keyframe shapes (flat square → base → ... → finished model) using polygon resampling/interpolation, with play/pause, a scrubber slider, and step chips.
The layout is responsive with a hero header, sticky-feeling nav, difficulty badges, and a themed footer. All animation is done with requestAnimationFrame and pure geometry interpolation — no extra dependencies needed, and the project builds cleanly.
Files built: index.html, src/data/models.ts, src/components/PaperPreview.tsx, src/components/CreasePattern.tsx, src/components/FoldingDemo.tsx, src/components/StepViewer.tsx, src/App.tsx