MotionForge is an MVP visual section builder for developers. It lets you select elements in a responsive hero section, edit real layout/style properties, preview GSAP animations, and export a clean React/Tailwind/GSAP component.
- Next.js App Router + TypeScript + Tailwind CSS
- Tree-based hero section model
- Element Builder v0.2 for adding, duplicating, deleting, and reordering nodes
- Desktop, tablet, and mobile viewport editing layers
- Improved element tree with type badges, indentation guides, quick-add controls, and live canvas highlighting
- Inspector controls for layout, typography, color, opacity, z-index, and overflow
- GSAP animation controls for page-load, scroll-enter, and hover triggers
- Suggest Mobile Layout action for quick responsive defaults
- Export modal with generated React component and GSAP logic
- Reset back to the default hero section
Use the left sidebar to add Div, Heading, Paragraph, Button, or Image placeholder nodes. If the selected element can contain children (section or div), new nodes are inserted as children; otherwise they are inserted as siblings immediately after the selected node.
Use Selected Element Actions in the inspector to duplicate, delete, or move the selected node among siblings. The root section cannot be deleted, and duplicated nodes receive fresh IDs recursively so exported code remains valid.
npm install
npm run devOpen http://localhost:3000 to use the builder.
Useful checks:
npm run typecheck
npm run buildapp/
page.tsx
components/
MotionForgeApp.tsx
TopToolbar.tsx
ElementTree.tsx
CanvasPreview.tsx
InspectorPanel.tsx
AnimationPanel.tsx
CodeExportModal.tsx
lib/
types.ts
defaultTree.ts
treeUtils.ts
styleUtils.ts
codegen.ts