cd examples/comprehensive-showcase
trunk serve
# Open http://localhost:8080cd examples/phase2-minimal-demo
trunk serve
# Open http://localhost:8080cd examples/simple-animation-demo
trunk serve
# Open http://localhost:8080| Example | Purpose | Status | Run Command |
|---|---|---|---|
comprehensive-showcase |
Full library showcase | ✅ Built | trunk serve |
basic-leptos-demo |
Pure Leptos baseline | ✅ Built | trunk serve |
phase2-minimal-demo |
CSS animations | ✅ Working | trunk serve |
simple-animation-demo |
Simple motion | ✅ Built | trunk serve |
e-commerce-gallery |
Real-world use case | ✅ Built | trunk serve |
scroll-progress-demo |
Scroll animations | ✅ Built | trunk serve |
sidebar-menu-demo |
UI components | ✅ Built | trunk serve |
path-morphing-demo |
Advanced features | ✅ Built | trunk serve |
advanced-gestures |
Gesture handling | ✅ Compiles | trunk serve |
layout-animations |
Layout animations | ✅ Compiles | trunk serve |
puzzle-game-demo |
Interactive game | ✅ Built | trunk serve |
wasm-performance-demo |
Performance testing | ✅ Compiles | trunk serve |
comprehensive-showcase→ All motion library featuresbasic-leptos-demo→ Pure Leptos (no motion)phase2-minimal-demo→ CSS-based animationssimple-animation-demo→ Basic motion librarye-commerce-gallery→ Real-world product galleryscroll-progress-demo→ Scroll-triggered animationssidebar-menu-demo→ UI component animationspath-morphing-demo→ SVG path morphingadvanced-gestures→ Touch/drag gestureslayout-animations→ Layout change animationspuzzle-game-demo→ Interactive game animationswasm-performance-demo→ Performance benchmarks
# Install trunk if needed
cargo install trunk
# Check compilation first
cargo check
# Try building manually
trunk build- Check browser console for errors
- Try a different browser
- Clear browser cache
- Check if port 8080 is available
# Check workspace compilation
cd /path/to/leptos-motion
cargo check --workspace
# Check specific example
cd examples/example-name
cargo check- ✅ 12/12 examples compile successfully
- ✅ 8/12 examples have built WASM files
- ✅ 4/12 examples compile but need building
- ✅ 0 broken or incomplete examples
- CSS Transitions (phase2-minimal-demo)
- Motion Library (comprehensive-showcase)
- Scroll Animations (scroll-progress-demo)
- Gesture Animations (advanced-gestures)
- Layout Animations (layout-animations)
- Path Morphing (path-morphing-demo)
- UI Components (sidebar-menu-demo)
- Game Animations (puzzle-game-demo)
- Performance (wasm-performance-demo)
- Try the examples → Start with comprehensive-showcase
- Read the code → Understand how animations work
- Modify examples → Experiment with different values
- Create your own → Build on the patterns you see
- Check documentation → See full README.md for details
Happy animating! 🎉