React Three Fiber examples
by Poimandres (pmndrs)
Gallery of React Three Fiber scenes (shaders, portals, caustics, scroll, physics, glass) linked to runnable sandboxes with source.
Web animation examples and effects Code libraryOpen source3dabstractdark

1. Price: r3f.docs.pmnd.rs/getting-started/examples
Fully free.
r3f.docs.pmnd.rs/getting-started/examplesNo quote yet: price is read from the official pages.
2. Commercial use: raw.githubusercontent.com
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell”
The library is MIT licensed, so it may be used and sold as part of a product.
raw.githubusercontent.com3. Credit the author: raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all”
No credit on screen. Keep the license notice inside the code you ship.
raw.githubusercontent.com4. Agent access: github.com/pmndrs/react-three-fiber
An agent can install it by itself with npm install @react-three/fiber. No key or account is needed.
github.com/pmndrs/react-three-fiberLicense checked Nov 5, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
React Three Fiber examples: 3D scenes for React sites
This is a gallery of example 3D scenes made with React Three Fiber, a free code library that lets a React site show interactive 3D. Each example opens as a live online sandbox with its full code, so you or your AI assistant can copy one and change it. The library is free for paid projects, but check each example's own models and pictures before reuse.
Where you can use it
A 3D top section on a landing page
Put moving 3D shapes or a product next to your headline instead of a flat picture. The scene is built from small reusable pieces.
Objects that react to the pointer
Make a 3D object grow when clicked and change color when the pointer is over it, for playful buttons or product pickers.
A 3D model of your product
Show a model from a 3D design app, such as a shoe or a gadget, that visitors can look at on your page.
3D inside a phone app
Use the same scene code in a React Native app for iPhone and Android.
A product color picker Idea
Let shoppers turn a 3D product around and switch its colors or parts before they buy.
A story that moves as you scroll Idea
Move the camera or objects as the visitor scrolls, for a product launch or a portfolio page.
React Three Fiber examples popularity
Downloads from api.npmjs.org, stars from GitHub, checked Nov 17, 2026. How the Gid Score is calculated
How to start
Tell your AI assistant
“Add a React Three Fiber scene to my hero section with @react-three/fiber 9.8.2, react 19 and three pinned: a few turning shapes with soft shadows, animation done with useFrame and delta, and a plain image fallback.”
Or install it yourself. Add three.js and React Three Fiber to a React project (for example one made with Vite).
npm install three @types/three @react-three/fiber
Mistakes to avoid
Each major version of the library pairs with one major version of React; 9.8.2 also caps React below 19.4.
State updates every frame push each frame through React; change the object through a ref and use delta so speed does not depend on the screen.
React 19, which version 9 needs, removed ReactDOM.render.
<Canvas shadows> with three 0.187<Canvas shadows="percentage"> (or "basic" or "variance")shadows={true} asks for PCFSoftShadowMap, which our demo run with three 0.187.0 reported as removed and replaced by PCFShadowMap.
Each material and geometry has to be compiled and processed, which is slow.
License
MIT license. The library is MIT licensed: free in personal and paid projects, and you keep its short license notice with copies. Models, pictures and code in each online example may come from other people, so check them before reuse.
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com
“The above copyright notice and this permission notice shall be included in all” raw.githubusercontent.com
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com
AllowedWith conditionsNot allowedNot stated or not checked yet
Is React Three Fiber examples free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with React Three Fiber examples. Paste them into your prompt or AGENTS.md.
- React Three Fiber examples (Web animation examples and effects, Video references and motion backgrounds, 3D models). Gallery of React Three Fiber scenes (shaders, portals, caustics, scroll, physics, glass) linked to runnable sandboxes with source. Price: free; commercial use OK; no credit needed. Style: 3d, abstract, dark.
Connect: npm @react-three/fiber.
Get files: Open an example from the docs page and copy its code from the linked sandbox; npm install @react-three/fiber three (jsx, tsx, js, glb).
Not allowed: Sandbox assets may have their own licenses
Rule: Library code is MIT; each linked sandbox/demo may have its own license and assets: check before copying.
License: https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/react-three-fiber-examples/)
Agent copies the code, snippet or prompt from the page (no account).
npm install @react-three/fiberFormats: jsx, tsx, js, glb
3D scene made with React Three Fiber (MIT)Alternatives
React Three Fiber examples This page
Pick the three.js examples when your site does not use React and you want plain three.js code for the same kinds of effects.
Pick OGL examples for a much smaller WebGL library that suits light hero backgrounds.
Pick Paper Shaders for ready animated gradient and texture backgrounds without building a 3D scene.
Lightweight smooth-scroll library often paired with GSAP ScrollTrigger and WebGL scroll effects.
Ready-made CSS keyframe animations (bounce, fade, slide, zoom, attention seekers) added with one class name.
Questions
Can I use React Three Fiber in a paid product?
Yes. The library is MIT licensed; keep its license notice with copies of the code.
Does it do less than plain three.js?
The makers say no; everything in three.js also works here.
Which React version do I need?
React 19 for version 9 of the library, React 18 for version 8.
Can I load my own 3D models?
Yes. The docs cover the common formats GLTF, FBX, OBJ and STL.
Does it work in a Next.js site?
Yes, though some three.js add-ons need three added to transpilePackages in next.config.js.