All demos › Styling & embedding
Build a Full-Width 3D Hero Section for WordPress
The same 3D Viewer block, first as a full-width hero, then at 380px beside text.
Free
Lite viewer
Custom CSS
Full-width hero · 70vh
The height follows the screen: 70vh on desktop, 50vh on tablets and 40vh on phones.
Inline at 380px wide
Drag to rotate.
Behaves like an image or video
Placed beside text at a fixed width, the viewer behaves like an image or video — yet it is the same block that filled the screen above. Width and height can be set separately for desktop, tablet and phone, alongside alignment and background. The hero’s CSS targets only its own class, so this second viewer keeps its plain look.
A 3D hero section that uses the 3D viewer as part of your page design, not a boxed widget. Here it becomes a full-width 3D hero section for WordPress with rounded corners and a drop shadow; further down, the same block sits at 380px beside text — only the style settings change.
01
Height that follows the screen
Full width, and 70% of the screen height on desktop (70vh), 50vh on tablets and 40vh on phones.
02
Styled from the block itself
Rounded corners and a soft shadow come from the Class and CSS fields in the block’s Additional panel, written for this viewer only.
03
Same block, beside text
At a fixed 380px width the viewer sits beside text like an image or video. Only the style settings change.
Setup
Set it up in 3 steps
1
Set the size per device
Set Width to 100% and Height to 70vh on desktop, 50vh on tablet and 40vh on phones. For the inline version, use a fixed size such as 380 × 320px.
2
Make the background transparent
Set Background Color to transparent, so the gradient behind the model shows through.
3
Add a class and your CSS
In the block’s Additional panel, give the viewer a Class (here hero-3d-demo) and type CSS aimed at that class for rounded corners, a soft shadow and a gradient fill.
Under the hood
Settings used in this demo
| Setting | Value |
|---|---|
| Width / Height | Hero: full width (100%), 70vh tall on desktop, 50vh on tablet, 40vh on phones · second viewer: 380 × 320px |
| Background Color | transparent, so the gradient behind the model shows through |
| Additional → Class | hero-3d-demo |
| Additional → CSS | rounded corners, a soft shadow and a gradient fill — typed into the block and aimed at the class above |
| Auto Rotate | on — 12° per second, starting straight away |
FAQ
Questions about 3D hero sections
Quick answers before you build your own.
Does the hero’s CSS change other viewers on the page?
No. The CSS targets only the hero’s own class (hero-3d-demo), so the second viewer on this page keeps its plain look.
Can the hero be shorter on phones?
Yes. Width and height are set separately for desktop, tablet and phone. This hero is 70vh tall on desktop, 50vh on tablets and 40vh on phones.
Is the inline viewer a different block?
No. It is the same 3D Viewer block that fills the screen above — only the style settings change.
Keep exploring
Related demos
Getting started
Add a 3D Model Viewer to WordPress with One Block
Add one block, pick one model file, and visitors can spin it right away.
Camera & controls
Customise Your 3D Viewer Control Layout
Rename, resize, reorder and move all seven viewer buttons.
See all 17 live 3D Viewer demos
One feature per page, each with the exact settings behind it.
See the 3D Viewer on real product pages in the WooCommerce 3D product demos.
Model: desk_lamp — Sketchfab CC asset (see demo-assets/ATTRIBUTION.md).