{"id":"5405d4f1-f521-43a3-ac6f-1b1b62257c25","shortId":"9ntULm","kind":"skill","title":"3d-web-experience","tagline":"Expert in building 3D experiences for the web - Three.js, React","description":"# 3D Web Experience\n\nExpert in building 3D experiences for the web - Three.js, React Three Fiber,\nSpline, WebGL, and interactive 3D scenes. Covers product configurators, 3D\nportfolios, immersive websites, and bringing depth to web experiences.\n\n**Role**: 3D Web Experience Architect\n\nYou bring the third dimension to the web. You know when 3D enhances\nand when it's just showing off. You balance visual impact with\nperformance. You make 3D accessible to users who've never touched\na 3D app. You create moments of wonder without sacrificing usability.\n\n### Expertise\n\n- Three.js\n- React Three Fiber\n- Spline\n- WebGL\n- GLSL shaders\n- 3D optimization\n- Model preparation\n\n## Capabilities\n\n- Three.js implementation\n- React Three Fiber\n- WebGL optimization\n- 3D model integration\n- Spline workflows\n- 3D product configurators\n- Interactive 3D scenes\n- 3D performance optimization\n\n## Patterns\n\n### 3D Stack Selection\n\nChoosing the right 3D approach\n\n**When to use**: When starting a 3D web project\n\n## 3D Stack Selection\n\n### Options Comparison\n| Tool | Best For | Learning Curve | Control |\n|------|----------|----------------|---------|\n| Spline | Quick prototypes, designers | Low | Medium |\n| React Three Fiber | React apps, complex scenes | Medium | High |\n| Three.js vanilla | Max control, non-React | High | Maximum |\n| Babylon.js | Games, heavy 3D | High | Maximum |\n\n### Decision Tree\n```\nNeed quick 3D element?\n└── Yes → Spline\n└── No → Continue\n\nUsing React?\n└── Yes → React Three Fiber\n└── No → Continue\n\nNeed max performance/control?\n└── Yes → Three.js vanilla\n└── No → Spline or R3F\n```\n\n### Spline (Fastest Start)\n```jsx\nimport Spline from '@splinetool/react-spline';\n\nexport default function Scene() {\n  return (\n    <Spline scene=\"https://prod.spline.design/xxx/scene.splinecode\" />\n  );\n}\n```\n\n### React Three Fiber\n```jsx\nimport { Canvas } from '@react-three/fiber';\nimport { OrbitControls, useGLTF } from '@react-three/drei';\n\nfunction Model() {\n  const { scene } = useGLTF('/model.glb');\n  return <primitive object={scene} />;\n}\n\nexport default function Scene() {\n  return (\n    <Canvas>\n      <ambientLight />\n      <Model />\n      <OrbitControls />\n    </Canvas>\n  );\n}\n```\n\n### 3D Model Pipeline\n\nGetting models web-ready\n\n**When to use**: When preparing 3D assets\n\n## 3D Model Pipeline\n\n### Format Selection\n| Format | Use Case | Size |\n|--------|----------|------|\n| GLB/GLTF | Standard web 3D | Smallest |\n| FBX | From 3D software | Large |\n| OBJ | Simple meshes | Medium |\n| USDZ | Apple AR | Medium |\n\n### Optimization Pipeline\n```\n1. Model in Blender/etc\n2. Reduce poly count (< 100K for web)\n3. Bake textures (combine materials)\n4. Export as GLB\n5. Compress with gltf-transform\n6. Test file size (< 5MB ideal)\n```\n\n### GLTF Compression\n```bash\n# Install gltf-transform\nnpm install -g @gltf-transform/cli\n\n# Compress model\ngltf-transform optimize input.glb output.glb \\\n  --compress draco \\\n  --texture-compress webp\n```\n\n### Loading in R3F\n```jsx\nimport { useGLTF, useProgress, Html } from '@react-three/drei';\nimport { Suspense } from 'react';\n\nfunction Loader() {\n  const { progress } = useProgress();\n  return <Html center>{progress.toFixed(0)}%</Html>;\n}\n\nexport default function Scene() {\n  return (\n    <Canvas>\n      <Suspense fallback={<Loader />}>\n        <Model />\n      </Suspense>\n    </Canvas>\n  );\n}\n```\n\n### Scroll-Driven 3D\n\n3D that responds to scroll\n\n**When to use**: When integrating 3D with scroll\n\n## Scroll-Driven 3D\n\n### R3F + Scroll Controls\n```jsx\nimport { ScrollControls, useScroll } from '@react-three/drei';\nimport { useFrame } from '@react-three/fiber';\n\nfunction RotatingModel() {\n  const scroll = useScroll();\n  const ref = useRef();\n\n  useFrame(() => {\n    // Rotate based on scroll position\n    ref.current.rotation.y = scroll.offset * Math.PI * 2;\n  });\n\n  return <mesh ref={ref}>...</mesh>;\n}\n\nexport default function Scene() {\n  return (\n    <Canvas>\n      <ScrollControls pages={3}>\n        <RotatingModel />\n      </ScrollControls>\n    </Canvas>\n  );\n}\n```\n\n### GSAP + Three.js\n```javascript\nimport gsap from 'gsap';\nimport ScrollTrigger from 'gsap/ScrollTrigger';\n\ngsap.to(camera.position, {\n  scrollTrigger: {\n    trigger: '.section',\n    scrub: true,\n  },\n  z: 5,\n  y: 2,\n});\n```\n\n### Common Scroll Effects\n- Camera movement through scene\n- Model rotation on scroll\n- Reveal/hide elements\n- Color/material changes\n- Exploded view animations\n\n### Performance Optimization\n\nKeeping 3D fast\n\n**When to use**: Always - 3D is expensive\n\n## 3D Performance\n\n### Performance Targets\n| Device | Target FPS | Max Triangles |\n|--------|------------|---------------|\n| Desktop | 60fps | 500K |\n| Mobile | 30-60fps | 100K |\n| Low-end | 30fps | 50K |\n\n### Quick Wins\n```jsx\n// 1. Use instances for repeated objects\nimport { Instances, Instance } from '@react-three/drei';\n\n// 2. Limit lights\n<ambientLight intensity={0.5} />\n<directionalLight /> // Just one\n\n// 3. Use LOD (Level of Detail)\nimport { LOD } from 'three';\n\n// 4. Lazy load models\nconst Model = lazy(() => import('./Model'));\n```\n\n### Mobile Detection\n```jsx\nconst isMobile = /iPhone|iPad|Android/i.test(navigator.userAgent);\n\n<Canvas\n  dpr={isMobile ? 1 : 2} // Lower resolution on mobile\n  performance={{ min: 0.5 }} // Allow frame drops\n>\n```\n\n### Fallback Strategy\n```jsx\nfunction Scene() {\n  const [webGLSupported, setWebGLSupported] = useState(true);\n\n  if (!webGLSupported) {\n    return <img src=\"/fallback.png\" alt=\"3D preview\" />;\n  }\n\n  return <Canvas onCreated={...} />;\n}\n```\n\n## Validation Checks\n\n### No 3D Loading Indicator\n\nSeverity: HIGH\n\nMessage: No loading indicator for 3D content.\n\nFix action: Add Suspense with loading fallback or useProgress for loading UI\n\n### No WebGL Fallback\n\nSeverity: MEDIUM\n\nMessage: No fallback for devices without WebGL support.\n\nFix action: Add WebGL detection and static image fallback\n\n### Uncompressed 3D Models\n\nSeverity: MEDIUM\n\nMessage: 3D models may be unoptimized.\n\nFix action: Compress models with gltf-transform using Draco and texture compression\n\n### OrbitControls Blocking Scroll\n\nSeverity: MEDIUM\n\nMessage: OrbitControls may be capturing scroll events.\n\nFix action: Add enableZoom={false} or handle scroll/touch events appropriately\n\n### High DPR on Mobile\n\nSeverity: MEDIUM\n\nMessage: Canvas DPR may be too high for mobile devices.\n\nFix action: Limit DPR to 1 on mobile devices for better performance\n\n## Collaboration\n\n### Delegation Triggers\n\n- scroll animation|parallax|GSAP -> scroll-experience (Scroll integration)\n- react|next|frontend -> frontend (React integration)\n- performance|slow|fps -> performance-hunter (3D performance optimization)\n- product page|landing|marketing -> landing-page-design (Product landing with 3D)\n\n### Product Configurator\n\nSkills: 3d-web-experience, frontend, landing-page-design\n\nWorkflow:\n\n```\n1. Prepare 3D product model\n2. Set up React Three Fiber scene\n3. Add interactivity (colors, variants)\n4. Integrate with product page\n5. Optimize for mobile\n6. Add fallback images\n```\n\n### Immersive Portfolio\n\nSkills: 3d-web-experience, scroll-experience, interactive-portfolio\n\nWorkflow:\n\n```\n1. Design 3D scene concept\n2. Build scene in Spline or R3F\n3. Add scroll-driven animations\n4. Integrate with portfolio sections\n5. Ensure mobile fallback\n6. Optimize performance\n```\n\n## Related Skills\n\nWorks well with: `scroll-experience`, `interactive-portfolio`, `frontend`, `landing-page-design`\n\n## When to Use\n- User mentions or implies: 3D website\n- User mentions or implies: three.js\n- User mentions or implies: WebGL\n- User mentions or implies: react three fiber\n- User mentions or implies: 3D experience\n- User mentions or implies: spline\n- User mentions or implies: product configurator\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["web","experience","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-3d-web-experience","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/3d-web-experience","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 35034 github stars · SKILL.md body (8,020 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-25T12:50:15.692Z","embedding":null,"createdAt":"2026-04-18T20:30:48.031Z","updatedAt":"2026-04-25T12:50:15.692Z","lastSeenAt":"2026-04-25T12:50:15.692Z","tsv":"'-60':543 '/cli':359 '/drei':254,386,438,567 '/fiber':246,445 '/iphone':600 '/model':594 '/model.glb':260 '0':398 '0.5':573,615 '1':314,554,607,751,810,854 '100k':322,545 '2':318,464,498,568,608,815,859 '3':325,476,576,822,866 '30':542 '30fps':549 '3d':2,8,15,21,34,39,50,65,82,91,110,122,127,131,133,137,143,151,154,192,199,270,283,285,297,301,409,410,420,426,520,526,529,638,648,685,690,782,796,801,812,844,856,907,930 '3d-web-experience':1,800,843 '4':330,586,827,872 '5':334,496,832,877 '500k':540 '50k':550 '5mb':344 '6':340,836,881 '60fps':539 'access':83 'action':651,676,696,721,747 'add':652,677,722,823,837,867 'allow':616 'alway':525 'ambientlight':571 'android/i.test':602 'anim':516,762,871 'app':92,175 'appl':309 'approach':144 'appropri':729 'ar':310 'architect':53 'ask':976 'asset':284 'babylon.js':189 'bake':326 'balanc':75 'base':456 'bash':348 'best':160 'better':756 'blender/etc':317 'block':709 'boundari':984 'bring':44,55 'build':7,20,860 'camera':502 'camera.position':489 'canva':241,604,633,737 'capabl':114 'captur':717 'case':292 'chang':513 'check':636 'choos':140 'clarif':978 'clear':951 'collabor':758 'color':825 'color/material':512 'combin':328 'common':499 'comparison':158 'complex':176 'compress':335,347,360,368,372,697,707 'concept':858 'configur':38,129,798,942 'const':257,393,448,451,590,598,624 'content':649 'continu':204,212 'control':164,183,429 'count':321 'cover':36 'creat':94 'criteria':987 'curv':163 'decis':195 'default':232,266,400,470 'deleg':759 'depth':45 'describ':955 'design':168,792,808,855,899 'desktop':538 'detail':581 'detect':596,679 'devic':533,671,745,754 'dimens':58 'dpr':605,731,738,749 'draco':369,704 'driven':408,425,870 'drop':618 'effect':501 'element':200,511 'enablezoom':723 'end':548 'enhanc':66 'ensur':878 'environ':967 'environment-specif':966 'event':719,728 'expens':528 'experi':4,9,17,22,48,52,767,803,846,849,891,931 'expert':5,18,972 'expertis':101 'explod':514 'export':231,265,331,399,469 'fallback':405,619,656,664,669,683,838,880 'fals':724 'fast':521 'fastest':224 'fbx':299 'fiber':29,105,119,173,210,238,820,925 'file':342 'fix':650,675,695,720,746 'format':288,290 'fps':535,544,778 'frame':617 'frontend':772,773,804,895 'function':233,255,267,391,401,446,471,622 'g':355 'game':190 'get':273 'glb':333 'glb/gltf':294 'glsl':108 'gltf':338,346,351,357,363,701 'gltf-transform':337,350,356,362,700 'gsap':477,481,483,764 'gsap.to':488 'gsap/scrolltrigger':487 'handl':726 'heavi':191 'high':179,187,193,642,730,742 'html':381 'hunter':781 'ideal':345 'imag':682,839 'immers':41,840 'impact':77 'implement':116 'impli':906,912,917,922,929,935,940 'import':227,240,247,378,387,431,439,480,484,560,582,593 'indic':640,646 'input':981 'input.glb':366 'instal':349,354 'instanc':556,561,562 'integr':124,419,769,775,828,873 'intens':572 'interact':33,130,824,851,893 'interactive-portfolio':850,892 'ipad':601 'ismobil':599,606 'javascript':479 'jsx':226,239,377,430,553,597,621 'keep':519 'know':63 'land':787,790,794,806,897 'landing-page-design':789,805,896 'larg':303 'lazi':587,592 'learn':162 'level':579 'light':570 'limit':569,748,943 'load':374,588,639,645,655,660 'loader':392 'lod':578,583 'low':169,547 'low-end':546 'lower':609 'make':81 'market':788 'match':952 'materi':329 'math.pi':463 'max':182,214,536 'maximum':188,194 'may':692,715,739 'medium':170,178,307,311,666,688,712,735 'mention':904,910,915,920,927,933,938 'mesh':306,466 'messag':643,667,689,713,736 'min':614 'miss':989 'mobil':541,595,612,733,744,753,835,879 'model':112,123,256,271,274,286,315,361,506,589,591,686,691,698,814 'moment':95 'movement':503 'navigator.useragent':603 'need':197,213 'never':88 'next':771 'non':185 'non-react':184 'npm':353 'obj':304 'object':263,559 'oncreat':634 'one':575 'optim':111,121,135,312,365,518,784,833,882 'option':157 'orbitcontrol':248,708,714 'output':961 'output.glb':367 'page':475,786,791,807,831,898 'parallax':763 'pattern':136 'perform':79,134,517,530,531,613,757,776,780,783,883 'performance-hunt':779 'performance/control':215 'permiss':982 'pipelin':272,287,313 'poli':320 'portfolio':40,841,852,875,894 'posit':459 'prepar':113,282,811 'primit':262 'product':37,128,785,793,797,813,830,941 'progress':394 'progress.tofixed':397 'project':153 'prototyp':167 'quick':166,198,551 'r3f':222,376,427,865 'react':14,27,103,117,171,174,186,206,208,236,244,252,384,390,436,443,565,770,774,818,923 'react-thre':243,251,383,435,442,564 'readi':277 'reduc':319 'ref':452,467,468 'ref.current.rotation':460 'relat':884 'repeat':558 'requir':980 'resolut':610 'respond':412 'return':235,261,269,396,403,465,473,631,632 'reveal/hide':510 'review':973 'right':142 'role':49 'rotat':455,507 'rotatingmodel':447 'sacrif':99 'safeti':983 'scene':35,132,177,234,258,264,268,402,472,505,623,821,857,861 'scope':954 'scroll':407,414,422,424,428,449,458,500,509,710,718,761,766,768,848,869,890 'scroll-driven':406,423,868 'scroll-experi':765,847,889 'scroll.offset':462 'scroll/touch':727 'scrollcontrol':432,474 'scrolltrigg':485,490 'scrub':493 'section':492,876 'select':139,156,289 'set':816 'setwebglsupport':626 'sever':641,665,687,711,734 'shader':109 'show':72 'simpl':305 'size':293,343 'skill':799,842,885,946 'skill-3d-web-experience' 'slow':777 'smallest':298 'softwar':302 'source-sickn33' 'specif':968 'spline':30,106,125,165,202,220,223,228,863,936 'splinetool/react-spline':230 'stack':138,155 'standard':295 'start':149,225 'static':681 'stop':974 'strategi':620 'substitut':964 'success':986 'support':674 'suspens':388,404,653 'target':532,534 'task':950 'test':341,970 'textur':327,371,706 'texture-compress':370 'third':57 'three':28,104,118,172,209,237,245,253,385,437,444,566,585,819,924 'three.js':13,26,102,115,180,217,478,913 'tool':159 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'touch':89 'transform':339,352,358,364,702 'treat':959 'tree':196 'triangl':537 'trigger':491,760 'true':494,628 'ui':661 'uncompress':684 'unoptim':694 'usabl':100 'usdz':308 'use':147,205,280,291,417,524,555,577,703,902,944 'usefram':440,454 'usegltf':249,259,379 'useprogress':380,395,658 'user':85,903,909,914,919,926,932,937 'useref':453 'usescrol':433,450 'usest':627 'valid':635,969 'vanilla':181,218 'variant':826 've':87 'view':515 'visual':76 'web':3,12,16,25,47,51,61,152,276,296,324,802,845 'web-readi':275 'webgl':31,107,120,663,673,678,918 'webglsupport':625,630 'webp':373 'websit':42,908 'well':887 'win':552 'without':98,672 'wonder':97 'work':886 'workflow':126,809,853 'y':461,497 'yes':201,207,216 'z':495","prices":[{"id":"c8a39481-da56-4062-9129-9caf624ad83f","listingId":"5405d4f1-f521-43a3-ac6f-1b1b62257c25","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:30:48.031Z"}],"sources":[{"listingId":"5405d4f1-f521-43a3-ac6f-1b1b62257c25","source":"github","sourceId":"sickn33/antigravity-awesome-skills/3d-web-experience","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/3d-web-experience","isPrimary":false,"firstSeenAt":"2026-04-18T21:30:15.848Z","lastSeenAt":"2026-04-25T12:50:15.692Z"},{"listingId":"5405d4f1-f521-43a3-ac6f-1b1b62257c25","source":"skills_sh","sourceId":"sickn33/antigravity-awesome-skills/3d-web-experience","sourceUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/3d-web-experience","isPrimary":true,"firstSeenAt":"2026-04-18T20:30:48.031Z","lastSeenAt":"2026-04-25T12:40:24.720Z"}],"details":{"listingId":"5405d4f1-f521-43a3-ac6f-1b1b62257c25","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"3d-web-experience","github":{"repo":"sickn33/antigravity-awesome-skills","stars":35034,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-25T06:33:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"938005e5de2c8775e14a1270528d7022095b63d0","skill_md_path":"skills/3d-web-experience/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/3d-web-experience"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"3d-web-experience","description":"Expert in building 3D experiences for the web - Three.js, React"},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/3d-web-experience"},"updatedAt":"2026-04-25T12:50:15.692Z"}}