
3dsvg-interactive-react
Turn SVGs into interactive React 3D components using the 3dsvg library and visual editor
- Installs
- 530
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/reason-machines/trending-skills --skill 3dsvg-interactive-react- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads 3dsvg-interactive-react automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
3dsvg — Interactive React 3D Components from SVGs
Skill by ara.so — Daily 2026 Skills collection.
3dsvg extrudes SVG paths, text, and shapes into fully interactive 3D React components powered by Three.js and React Three Fiber. It ships as an embeddable <SVG3D> component (npm) plus a visual editor at 3dsvg.design.
Installation
npm install 3dsvg
# or
yarn add 3dsvg
# or
pnpm add 3dsvg
Peer dependencies (install if not already present):
npm install three @react-three/fiber @react-three/drei
Quick Start
import { SVG3D } from "3dsvg";
// Spin text in 3D
<SVG3D text="Hello" animate="spin" />
// 3D logo from SVG file
<SVG3D svg="/logo.svg" material="gold" />
// Pixel editor input
<SVG3D svg="<svg>...</svg>" material="chrome" animate="float" />
SVG3DProps — Full API
import { SVG3D } from "3dsvg";
<SVG3D
// Input (choose one)
text="Hello World" // Text string (uses Google Fonts)
svg="/path/to/file.svg" // URL to SVG file
// svg="<svg>...</svg>" // Raw SVG markup string
// Font (when using text=)
font="Inter" // Google Font name (10 presets available)
// Material preset
material="default" // "default" | "plastic" | "metal" | "glass"
// "rubber" | "chrome" | "gold" | "clay"
// "emissive" | "holographic"
// Animation
animate="spin" // "spin" | "float" | "pulse" | "wobble"
// "swing" | "spin+float" | undefined (static)
// Geometry
depth={0.2} // Extrusion depth (default: 0.2)
bevelEnabled={true} // Enable bevel on edges
bevelThickness={0.02} // Bevel thickness
bevelSize={0.02} // Bevel size
bevelSegments={3} // Bevel smoothness
// Lighting
ambientIntensity={0.5} // Ambient light (0–1)
keyLightIntensity={1.0} // Key light brightness
keyLightX={5} // Key light X position
keyLightY={5} // Key light Y position
keyLightZ={5} // Key light Z position
shadows={true} // Enable shadow casting
// Camera
zoom={1} // Initial zoom level
autoRotate={false} // Auto-rotate camera (overrides animate)
// Texture
texture="none" // "none" or procedural preset name, or URL
/>
Common Patterns
Basic Logo Viewer
import { SVG3D } from "3dsvg";
export function LogoViewer() {
return (
<div style={{ width: 400, height: 400 }}>
<SVG3D
svg="/logo.svg"
material="metal"
animate="float"
depth={0.3}
bevelEnabled={true}
bevelThickness={0.03}
/>
</div>
);
}
Interactive 3D Text Badge
import { SVG3D } from "3dsvg";
export function HeroBadge() {
return (
<SVG3D
text="LAUNCH"
font="Inter"
material="chrome"
animate="spin"
depth={0.4}
keyLightIntensity={1.5}
ambientIntensity={0.3}
/>
);
}
Static Product Icon (No Animation)
import { SVG3D } from "3dsvg";
export function ProductIcon({ svgUrl }: { svgUrl: string }) {
return (
<SVG3D
svg={svgUrl}
material="gold"
depth={0.15}
bevelEnabled={true}
shadows={true}
ambientIntensity={0.6}
keyLightX={3}
keyLightY={8}
keyLightZ={3}
/>
);
}
Holographic Animated Logo
import { SVG3D } from "3dsvg";
export function HolographicLogo() {
return (
<SVG3D
svg="/brand.svg"
material="holographic"
animate="spin+float"
depth={0.1}
ambientIntensity={0.8}
/>
);
}
Inline SVG String
import { SVG3D } from "3dsvg";
const starSvg = `
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<polygon points="50,5 61,35 95,35 68,57 79,91 50,70 21,91 32,57 5,35 39,35"
fill="#FFD700"/>
</svg>
`;
export function Star3D() {
return (
<SVG3D
svg={starSvg}
material="gold"
animate="pulse"
depth={0.25}
/>
);
}
Material Presets Reference
| Value | Description |
|---|---|
"default" | Standard PBR material |
"plastic" | Smooth, slightly shiny plastic |
"metal" | Matte metallic surface |
"glass" | Transparent glass look |
"rubber" | Soft matte rubber |
"chrome" | High-gloss mirror chrome |
"gold" | Warm gold PBR |
"clay" | Soft diffuse clay (great for screenshots) |
"emissive" | Glowing emission effect |
"holographic" | Iridescent rainbow foil |
Animation Presets Reference
| Value | Description |
|---|---|
"spin" | Continuous Y-axis rotation |
"float" | Gentle up/down bob |
"pulse" | Breathing scale animation |
"wobble" | Side-to-side wobble |
"swing" | Pendulum swing |
"spin+float" | Spin combined with float |
undefined | Static, user-draggable only |
Monorepo Development Setup
git clone https://github.com/renatoworks/3dsvg.git
cd 3dsvg
npm install
npm run build:engine # Build the npm package
npm run dev:web # Start the visual editor at localhost:3000
Engine package only
cd packages/engine
npm run build # Outputs to dist/
npm run dev # Watch mode
Project Structure
packages/
├── engine/src/
│ ├── index.tsx # SVG3D public component
│ ├── scene.tsx # Three.js scene, ExtrudedSVG mesh
│ ├── controls.tsx # Animation logic, orbit controls
│ ├── materials.ts # PBR material preset definitions
│ ├── types.ts # SVG3DProps TypeScript types
│ └── use-font.ts # Google Font → vector path loader
└── web/src/
├── app/ # Next.js pages
├── components/ # Editor UI panels, export bar
└── lib/ # Texture generators, FFmpeg utils
TypeScript Types
import type { SVG3DProps } from "3dsvg";
const config: SVG3DProps = {
svg: "/logo.svg",
material: "chrome",
animate: "float",
depth: 0.3,
};
export function MyComponent() {
return <SVG3D {...config} />;
}
Next.js Integration
Because SVG3D uses Three.js (browser-only), use dynamic import with ssr: false:
// components/Logo3D.tsx
"use client";
import dynamic from "next/dynamic";
const SVG3D = dynamic(
() => import("3dsvg").then((m) => m.SVG3D),
{ ssr: false, loading: () => <div>Loading 3D...</div> }
);
export function Logo3D() {
return (
<SVG3D
svg="/logo.svg"
material="gold"
animate="spin"
/>
);
}
Vite / React Integration
// No special config needed — just import and use
import { SVG3D } from "3dsvg";
function App() {
return (
<div style={{ height: "100vh" }}>
<SVG3D text="Vite + 3D" material="plastic" animate="float" />
</div>
);
}
Visual Editor Workflow
- Go to 3dsvg.design
- Choose an input method: Text, Pixel Editor, SVG Code, or File Upload
- Pick a material, animation, and lighting configuration
- Use the Embed export to copy a ready-to-paste
<SVG3D>JSX snippet - Export as PNG (up to 4K), Video (MP4/WebM), or 3D Model (GLB/STL/OBJ/PLY)
Drag and drop an SVG file anywhere on the editor to load it instantly.
Troubleshooting
Component renders blank / white screen
- Ensure
three,@react-three/fiber, and@react-three/dreiare installed - In Next.js, confirm you're using
dynamicwithssr: false - Wrap in a container with explicit
widthandheight
SVG not extruding correctly
- Use simple, closed SVG paths; complex compound paths may not extrude
- Inline
fillattributes on paths are respected — avoid CSS-only fills - Try increasing
bevelSegmentsfor smoother curves
Text not loading
- The
fontprop loads from Google Fonts — ensure network access or host fonts locally - Supported fonts are the 10 presets defined in
use-font.ts
Performance issues
- Reduce
bevelSegments(try1or2) - Disable
shadowsfor lower-end devices - Use
animate={undefined}for static display
FFmpeg/video export fails in dev
- Video export uses FFmpeg WASM and requires
SharedArrayBuffer - Add these headers to your dev server:
Cross-Origin-Opener-Policy: same-originandCross-Origin-Embedder-Policy: require-corp
License
MIT — Renato Costa / Blueberry
FAQ
What does the 3dsvg-interactive-react skill do?
Turn SVGs into interactive React 3D components using the 3dsvg library and visual editor
How do I install 3dsvg-interactive-react?
Run npx skills add https://github.com/reason-machines/trending-skills --skill 3dsvg-interactive-react in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/3dsvg-interactive-react/ (personal) or .claude/skills/3dsvg-interactive-react/ (project).
Which AI agents can use 3dsvg-interactive-react?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is 3dsvg-interactive-react safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains 3dsvg-interactive-react?
It is published by reason-machines in reason-machines/trending-skills. It has 530 recorded installs.
More from reason-machines/trending-skills
openclaw-control-center
reason-machines/trending-skills
Local-first, security-first control center for OpenClaw agents — visibility dashboard with readonly defaults, token attribution, collaboration tracing, and safe write operations.
inkos-multi-agent-novel-writing
reason-machines/trending-skills
Multi-agent CLI system for autonomous novel writing, auditing, and revision with human review gates
claude-hud-statusline
reason-machines/trending-skills
A Claude Code plugin that displays a real-time HUD showing context usage, active tools, running agents, and todo progress in your terminal statusline.
understand-anything-knowledge-graph
reason-machines/trending-skills
Turn any codebase into an interactive knowledge graph using Claude Code skills — explore, search, and ask questions about any project visually.
agency-agents-ai-specialists
reason-machines/trending-skills
A collection of specialized AI agent personalities for Claude Code, Cursor, Aider, Windsurf, and other AI coding tools — covering engineering, design, marketing, sales, and more.
agent-browser-automation
reason-machines/trending-skills
Headless browser automation CLI for AI agents using native Rust binary with Chrome DevTools Protocol
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.