Interactive 3D can show customers what photos can’t, or it can slow the page and get in the way. Here’s how to tell the difference, and how to build it so it works for everyone.
In this article 9 sections
WebGL is the technology that lets a web page draw interactive 3D graphics using the phone or computer’s graphics chip, with no app or plugin. On a business website, it earns its place when it shows something photos can’t: a product you can turn around, a car in the paint colour you picked, a space you can look through, a configurator that updates as you choose. When it’s only there to look impressive, it slows the page, drains batteries and can make some visitors feel unwell.
The test is simple. Does the 3D help a customer understand something or make a decision? If yes, it’s worth doing well. If no, a good photo or a short video will usually do the job better.
What WebGL and three.js are, in plain words
- WebGL is, in MDN’s words, a JavaScript API for rendering interactive 3D and 2D graphics(opens in a new tab) in any compatible browser without plugins. It draws into a
canvaselement on the page. All modern browsers support it, but the device’s hardware has to support it too. - three.js(opens in a new tab) is a JavaScript 3D library built on top of it. WebGL itself is very low level. three.js handles the cameras, lights, materials and model loading, so a developer can build a scene without writing everything from scratch.
- glTF is a common file format for 3D models on the web. The Khronos Group, which maintains it, calls it the JPEG of 3D(opens in a new tab): built to keep models small and quick to load.
- WebGPU is the newer successor to WebGL. At the time of writing (December 2026), MDN marks it as limited availability(opens in a new tab) because it doesn’t yet work in some widely used browsers, so WebGL is still the safe default for a business site.
If HTML, CSS and JavaScript are new terms, HTML, CSS and JavaScript explained covers the layers underneath.
When 3D earns its place
- Products where shape matters. Furniture, equipment, parts, anything a customer wants to see from every side before buying.
- Cars and vehicles. Paint colours, wheels, wraps and finishes are much easier to judge on a model you can turn than in a flat swatch.
- Spaces. Venues, rentals, fit-outs, or a build that doesn’t exist yet. Being able to look around answers questions before anyone calls.
- Configurators. Pick the options and see the result straight away, with the price updating as you go. This is where 3D most directly turns into enquiries.
- Explaining how something works. An exploded view of a part, or a cutaway of a system, can say in a few seconds what a paragraph struggles with.
For a single product viewer, a developer doesn’t always need a custom scene. Google’s open-source model-viewer(opens in a new tab) component displays interactive 3D models on a page, and in AR on supported phones. A full custom scene makes sense when the 3D needs to match your brand closely or respond to choices the customer makes.
I build WebGL sites, and the same test applies to every scene: what is it for?
When it’s decoration
- Floating shapes behind the headline
- A spinning logo
- A long 3D intro that plays before any content appears
- Scroll-driven scenes that make people scroll through effects to reach the words
None of these is wrong in itself, but each one costs loading time and attention. Ask whether a still image or a short looping video would do the same job. If it would, use that. Website animation dos and don’ts covers motion more broadly.
Performance on phones
A 3D scene asks a lot of a phone. It has to download the library, the models and their textures, then draw the scene again many times a second. That costs data, battery and heat, and cheaper phones have much less graphics memory to work with.
How a well-built scene handles it:
- The page works before the 3D arrives. Text, prices and buttons load first. The scene loads afterwards, or only when someone scrolls to it or taps to start it.
- A still image stands in while the model loads, so there’s never an empty box.
- Models and textures are kept small. Compressed formats help here: MDN’s WebGL best practices(opens in a new tab) notes that compressed texture formats use less graphics memory, which matters most on mobile.
- Quality adapts. MDN suggests offering lower quality settings when resources are tight, and rendering at a smaller size then scaling up as a simple way to trade a little sharpness for speed.
- It stops drawing when nobody’s looking. A scene that’s scrolled out of view, or in a background tab, shouldn’t keep using the phone’s graphics chip.
Test on a mid-range Android phone over mobile data, not on the laptop it was built on. Heavy scripts are a common reason a page feels slow to respond, which Core Web Vitals explained goes into.
Fallbacks for older devices
Not every device can run WebGL, and even ones that can sometimes lose it. MDN advises handling the webglcontextlost event(opens in a new tab), which can fire when the graphics chip runs out of memory.
A sensible fallback plan:
- Check whether WebGL is available before starting the scene.
- If it isn’t, show a good photo or a short video with the same information.
- If the scene crashes partway through, swap in that same image rather than leaving a blank or frozen box.
- Make sure everything a customer needs (options, prices, the enquiry button) works without the 3D at all.
Accessibility
Respect reduced motion. Phones and computers have a setting that asks for less animation, and websites can read it through the prefers-reduced-motion(opens in a new tab) media feature. MDN notes that animations such as scaling or panning large objects can trigger discomfort for people with vestibular disorders. When the setting is on, turn off auto-rotation and camera fly-throughs, and let the visitor move the model themselves.
Give people a pause button. WCAG’s Pause, Stop, Hide(opens in a new tab) criterion, at Level A, says moving content that starts automatically, lasts more than five seconds and sits alongside other content needs a way to pause, stop or hide it. An auto-rotating model counts.
Make the controls usable without a mouse. Offer buttons for rotate, zoom and reset that work with a keyboard, and don’t let the scene capture the scroll wheel so people can’t scroll past it.
Describe what the scene shows. To a screen reader, a canvas is a blank picture. Put a short text description next to it, covering what someone would learn by looking. Website accessibility basics covers the wider picture.
Keeping the text crawlable
Anything drawn inside the 3D scene is pixels, not text. A label, spec or price that only exists inside the canvas is invisible to search engines and screen readers, in the same way Google can’t read words in pictures.
So keep the headings, descriptions, specifications and prices in the page’s normal HTML, and treat the 3D as an extra layer on top. Google’s JavaScript SEO basics(opens in a new tab) explains that it processes JavaScript pages in three phases (crawling, rendering and indexing) and that server-side or pre-rendering is still a great idea, partly because not all bots can run JavaScript. Your important content should be in the HTML the server sends, not created by the 3D code.
Questions to ask before adding 3D
- What decision does this help the customer make?
- What does the page show before the 3D has loaded?
- How much does it download, and how does it feel on mobile data?
- What happens when reduced motion is switched on?
- What happens on a phone that can’t run WebGL?
- Who updates the models when products or colours change?
Frequently asked questions
Will a 3D website hurt my Google rankings?
Not by itself. The risks are indirect: a page that’s slow to load and respond, and text locked inside the canvas where search engines can’t read it. Keep the words in HTML and load the 3D after the main content, and those risks mostly go away.
Does WebGL work on iPhones and Android phones?
Modern browsers on both support it, according to MDN, but the device’s hardware has to support it too, and older or cheaper phones can struggle with heavy scenes. That’s why a fallback image and a lighter quality setting matter.
Do I need custom 3D models made?
Sometimes. You may already have design files or models from a supplier that can be converted and slimmed down for the web. Otherwise, models are built or scanned. Either way, the file needs to be prepared for the web, because a model made for manufacturing is usually far too heavy for a phone.