npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill lightweight-3d-effects
Lightweight 3D effects for decorative elements and micro-interactions using Zdog, Vanta.js, and Vanilla-Tilt.js. Use this skill when adding pseudo-3D illustrations, animated backgrounds, parallax tilt effects, decorative 3D elements, or subtle depth effects without heavy frameworks. Triggers on tasks involving Zdog pseudo-3D, Vanta.js backgrounds, Vanilla-Tilt parallax, card tilt effects, hero section animations, or lightweight landing page visuals. Ideal for performance-focused designs.
npx skills add freshtechbro/claudedesignskills --skill lightweight-3d-effects
This skill combines three powerful libraries for decorative 3D elements and micro-interactions:
Zdog is a pseudo-3D engine that renders flat, round designs in 3D space using Canvas or SVG.
Key Features:
Basic Shapes:
Organize shapes into groups for complex models:
Vanta.js provides animated WebGL backgrounds with minimal setup, powered by Three.js or p5.js.
Key Features:
1. WAVES (Three.js)
2. CLOUDS (Three.js)
3. BIRDS (p5.js required)
4. NET (Three.js)
5. CELLS (p5.js required)
6. FOG (Three.js)
Other effects: GLOBE, TRUNK, TOPOLOGY, DOTS, HALO, RINGS
Vanilla-Tilt.js adds smooth 3D tilt effects responding to mouse movement and device orientation.
Key Features:
Card with Glare Effect:
Layered 3D Effect:
Programmatic Control:
updateRenderGraph() when needed.destroy() in SPAspoints, quantity for better performancegyroscopeSamples: Lower for better mobile performancewill-change: Hint browser for transformsProblem: Multiple Vanta effects cause performance issues
Solution: Use only one effect, or lazy-load effects per section
Problem: Vanta/Tilt not destroyed on component unmount
Solution: Always clean up
Problem: Canvas appears blank
Causes:
updateRenderGraph()Solution:
Problem: Tilt doesn't respond on mobile devices
Solution: Enable gyroscope controls
Problem: Colors don't work
Cause: Vanta.js uses hex numbers, not strings
Zdog:
Vanta.js:
Vanilla-Tilt.js: