NEEBARP TECH

3D components for React without learning Three.js

Updated · 8 min read · Neebarp Tech

Short answer

For flips, tilts and spinning cards, CSS 3D transforms are enough and cost nothing. To show a 3D model of a product, use Google's free model-viewer tag. To design a scene by eye, use Spline and embed it with its React package. For custom interactive scenes in React, React Three Fiber with drei is the standard. Or start from a ready-made 3D hero and only change the words.

Three.js is the engine behind most 3D on the web, and it's excellent. It's also a lot to learn if all you want is a spinning product, a tilting card or a hero that people stop to play with. You need to know about scenes, cameras, lights, materials and a render loop before anything appears.

The good news is that you can skip most of that. Here are five ways to get 3D into a React app, from no library at all to a full scene, with what each one costs and when it's the right pick. We make the last option, a set of ready-made 3D heroes, and say so where it appears. Everything else here is free or has a free plan.

Quick picks

OptionBest forCost (checked 29 Nov 2026)Three.js knowledge
CSS 3D transformsFlips, tilts, spinning cards and cubesFree, built into browsersNone
model-viewerShowing a 3D model of a product, with ARFree, Apache 2.0None
SplineDesigning a scene visually, then embedding itFree plan with Spline logo; Pro $30/monthNone
React Three Fiber + dreiCustom interactive scenes in ReactFree, MITSome
Neebarp Vault 3D (ours)Ready-made interactive 3D hero sectionsSome free; all for $9 onceNone to use it

1. CSS 3D transforms: no library at all

Browsers can already place flat elements in 3D space. Give a parent perspective, give the child transform-style: preserve-3d, then rotate and move faces with rotateX, rotateY and translateZ. That's enough for card flips, a tilting product shot, or a cube made of six divs.

import "./cube.css";

const faces = ["Design", "Build", "Ship", "Learn", "Top", "Base"];

export function CssCube() {
  return (
    <div className="scene">
      <div className="cube">
        {faces.map((f) => <div key={f}>{f}</div>)}
      </div>
    </div>
  );
}

/* cube.css */
.scene { width: 160px; height: 160px; perspective: 600px; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  animation: spin 8s linear infinite; }
.cube > div { position: absolute; inset: 0; display: grid; place-items: center;
  border: 1px solid #f5a524; background: rgba(245, 165, 36, 0.12); color: #fff; font: 600 20px system-ui; }
.cube > div:nth-child(1) { transform: rotateY(0deg) translateZ(80px); }
.cube > div:nth-child(2) { transform: rotateY(90deg) translateZ(80px); }
.cube > div:nth-child(3) { transform: rotateY(180deg) translateZ(80px); }
.cube > div:nth-child(4) { transform: rotateY(-90deg) translateZ(80px); }
.cube > div:nth-child(5) { transform: rotateX(90deg) translateZ(80px); }
.cube > div:nth-child(6) { transform: rotateX(-90deg) translateZ(80px); }
@keyframes spin { to { transform: rotateX(-20deg) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-20deg) rotateY(30deg); } }
Six faces, each turned to its side and pushed out by half the cube's width (80px). The cube spins on its own and stops for people who ask for less motion.

We type-checked this with TypeScript in strict mode and ran it in headless Chrome, where the cube turned as expected. It adds nothing to your JavaScript: our bundle with it was the same size as a bare React page, give or take a few hundred bytes. The limit is that every face is a flat rectangle. Curved shapes, real lighting and imported models need WebGL, which is where the next four options come in.

2. model-viewer: one tag for a 3D model

If you have a 3D model of a product (a GLB file, which most 3D tools export), model-viewer from Google shows it with one HTML tag. People can drag to turn it, and on supported phones they can place it in their room with AR. It's free under the Apache 2.0 licence and works in the last two versions of the major browsers, Safari included, according to its site.

<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.4.0/model-viewer.min.js"></script>

<model-viewer src="/models/chair.glb" alt="Oak chair"
  camera-controls auto-rotate ar shadow-intensity="1"></model-viewer>
camera-controls lets people drag the model, auto-rotate turns it slowly, and ar adds the View in your space button where AR is available.

In React you can use the same tag, or install @google/model-viewer and import it once. One thing we ran into: version 4.4.0 asks for three.js 0.183, so installing it next to the newest three.js (0.187) fails with a peer-dependency error. Its README says this is on purpose and advises keeping three.js at the version it was tested with. If your app already uses three.js for something else, the script tag avoids the clash.

3. Spline: design it by eye, embed it in React

Spline is a 3D design tool in the browser, closer to Figma than to code. You build and animate a scene with a mouse, then export it. Choose Export → Code → React and Spline gives you a scene URL for its React package, @splinetool/react-spline (MIT licensed).

import Spline from "@splinetool/react-spline";

export function SplineHero() {
  return <Spline scene="https://prod.spline.design/your-scene-id/scene.splinecode" />;
}
Install with npm install @splinetool/react-spline @splinetool/runtime, then paste the URL from Spline's export panel. We type-checked this against version 4.2.0.

Prices, from Spline's pricing page on 29 November 2026: the Free plan is $0, but web exports carry a Spline logo. Hobby is $15 a month ($12 billed yearly), Pro is $30 a month ($25 yearly) and Max is $70 a month ($60 yearly), per seat. Downloading the code export to host yourself starts on Pro.

Spline is the right pick when the scene is a piece of design. The trade-off is that the scene lives in Spline's runtime: your React code can trigger its events, but changing the scene itself means going back to the editor. For Next.js, the package also has a @splinetool/react-spline/next import that renders a blurred placeholder on the server.

4. React Three Fiber and drei: three.js the React way

React Three Fiber (R3F) lets you write a three.js scene as React components: <mesh>, <torusKnotGeometry>, <meshStandardMaterial>. drei adds ready-made helpers on top, like orbit controls, floating motion, environment lighting, text and model loading. Both are MIT licensed. You still learn some three.js ideas, but far fewer, and they fit how you already write React.

import { useRef } from "react";
import { Canvas, useFrame } from "@react-three/fiber";
import { Float, OrbitControls } from "@react-three/drei";
import type { Mesh } from "three";

function Knot() {
  const ref = useRef<Mesh>(null);
  useFrame((_, delta) => {
    if (ref.current) ref.current.rotation.y += delta * 0.4;
  });
  return (
    <Float speed={2} floatIntensity={1.5}>
      <mesh ref={ref}>
        <torusKnotGeometry args={[1, 0.32, 160, 32]} />
        <meshStandardMaterial color="#f5a524" metalness={0.6} roughness={0.25} />
      </mesh>
    </Float>
  );
}

export function Hero3D() {
  return (
    <Canvas camera={{ position: [0, 0, 5] }} style={{ height: 480 }}>
      <ambientLight intensity={0.4} />
      <directionalLight position={[3, 4, 5]} intensity={2} />
      <Knot />
      <OrbitControls enableZoom={false} />
    </Canvas>
  );
}
A gold knot that floats, spins slowly and can be turned with the mouse. useFrame runs every frame; Float and OrbitControls come from drei.

We ran this with three 0.187, @react-three/fiber 9.8.2 and @react-three/drei 10.7.9. It type-checked cleanly and rendered the knot in headless Chrome. Two things to know before you add it:

  • Match the versions. The R3F docs say version 9 pairs with React 19 and version 8 with React 18. In Next.js, add three to transpilePackages in next.config, as the R3F installation page says, and mark the file "use client".
  • It's heavy. Bundled and minified, this one scene added about 955 KB of JavaScript to a bare React page (about 256 KB gzipped), mostly three.js itself. Load it with React.lazy or next/dynamic so it doesn't hold up the rest of the page.

5. Ready-made 3D heroes (ours)

The last way to skip learning Three.js is to let someone else write the scene. We make Neebarp Vault, and its 3D category has 22 interactive three.js heroes and scenes with 55 variants. They're whole first screens, not just objects: a toy car on a floating island that visitors can drive (Drive Hero), a cricket over you bat through, a penalty shoot-out, a dragon over a castle, plus smaller draggable scenes like a dotted globe and metaballs.

Neebarp Vault's 3D category page, Heroes you can play, listing Drive Hero, Atlas Filament, Blob Foundry, Dragon Keep Hero, Puzzle Reveal Hero and Cricket Hero
Vault's 3D category: 22 three.js heroes and scenes. Puzzle Reveal Hero and Cricket Hero are free.

They're written in plain three.js, not R3F, and three.js only loads when a scene is on screen. You paste the component, change the headline, buttons and colours, and leave the 3D alone. Each one also comes with an AI prompt you can paste into Claude, Cursor or ChatGPT to adapt it.

  • Free: Puzzle Reveal Hero and Cricket Hero, with no key needed.
  • Everything else: one $9 key opens all 788 Vault components in 39 categories, with lifetime updates and a commercial licence for personal and client projects (checked on 29 November 2026).
  • More free 3D-ish pieces: 13 of our components are free on 21st.dev, including a hologram gallery.

How to choose

  • You want a card to flip or tilt: CSS 3D. No library, no cost.
  • You have a product model and want people to turn it or see it in AR: model-viewer.
  • A designer is making the scene: Spline, and accept the logo on the free plan or pay for Hobby or above.
  • You want full control and will maintain the scene: React Three Fiber with drei.
  • You want a playable 3D hero this afternoon: start from a ready-made one and change the copy.

Whatever you pick, check it on a mid-range phone. 3D that's smooth on a laptop can drain a phone's battery, so pause the render loop when the scene scrolls off screen and offer a still image to people who prefer reduced motion.

Questions

Do I need to learn Three.js to use React Three Fiber?

Not all of it. You write components instead of setup code, and drei covers common jobs like controls, lighting and loading models. You'll still meet three.js ideas such as meshes, geometries and materials, so it helps to read the R3F docs' first pages.

Is Spline free for commercial use?

Spline has a free plan, but its web exports carry a Spline logo. Paid plans start at $15 a month, or $12 billed yearly, per seat (checked on 29 November 2026). The React package itself, @splinetool/react-spline, is MIT licensed.

What is the lightest way to add 3D to a React site?

CSS 3D transforms. They add no JavaScript and run on the GPU. For anything WebGL-based, expect hundreds of kilobytes: our small React Three Fiber scene added about 256 KB gzipped.

Does React Three Fiber work with Next.js?

Yes. Mark the component with "use client", add three to transpilePackages in next.config, and load the scene with next/dynamic so it doesn't block the first paint.