Models by Shopify and Eric Chadwick, CC BY 4.0, from the Khronos glTF Sample Assets.

Environment Intensity
Exposure
Auto Rotate Speed
0.4
Auto Rotate Delay
2s
Hover Tilt
0.15
Float
0.3
Shadow Opacity
0.45
Fit
0.8
Offset X
0
Offset Y
0
Start Angle
-35°
Tilt
12°

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
29 properties
urlURL of the model. Supports glb, gltf, fbx and obj.
widthnumber | string400Width of the viewer.
heightnumber | string400Height of the viewer.
environment'studio'Lighting environment: studio, city, sunset, dawn, warehouse, apartment, lobby, night, park, forest or 'none'.
environmentIntensityStrength of the environment lighting and reflections.
exposureOverall brightness of the render.
'rise' | 'spin' | 'fade' | 'none''rise'How the model appears once it has loaded.
autoRotateSlowly turns the model while idle.
autoRotateSpeed0.4Speed of the idle rotation.
autoRotateDelay2Seconds after you let go before the idle rotation eases back in.
dragRotateDrag to turn the model, with momentum when you let go.
turntableLimits dragging to left and right, like a product turntable.
zoomPinch or hold Ctrl or Cmd and scroll to zoom. Plain scrolling still scrolls the page.
minZoom0.7How far out you can zoom.
maxZoom2How far in you can zoom.
hoverTilt0.15How much the model leans toward the cursor. 0 turns it off.
float0.3Gentle floating above the shadow. 0 turns it off.
shadowSoft contact shadow under the model.
shadowOpacity0.45Darkness of the shadow.
fit0.8How much of the viewer the model fills. It is framed automatically.
offsetXMoves the model sideways, from -1 to 1.
offsetYMoves the model up or down, from -1 to 1.
startAngle-30Starting angle around the model, in degrees.
tilt10Starting tilt toward the viewer, in degrees.
resetOnDoubleClickDouble click to return to the starting view.
onModelLoaded() => voidCalled once the model has loaded.
refRefExposes capture(type?), which returns the current frame as an image data URL.
Extra class names for the container.
Inline styles for the container.
urlstring

URL of the model. Supports glb, gltf, fbx and obj.

widthnumber | string

Width of the viewer.

Default400
heightnumber | string

Height of the viewer.

Default400
environmentstring

Lighting environment: studio, city, sunset, dawn, warehouse, apartment, lobby, night, park, forest or 'none'.

Default'studio'
environmentIntensitynumber

Strength of the environment lighting and reflections.

exposurenumber

Overall brightness of the render.

intro'rise' | 'spin' | 'fade' | 'none'

How the model appears once it has loaded.

Default'rise'
autoRotateboolean

Slowly turns the model while idle.

autoRotateSpeednumber

Speed of the idle rotation.

Default0.4
autoRotateDelaynumber

Seconds after you let go before the idle rotation eases back in.

Default2
dragRotateboolean

Drag to turn the model, with momentum when you let go.

turntableboolean

Limits dragging to left and right, like a product turntable.

zoomboolean

Pinch or hold Ctrl or Cmd and scroll to zoom. Plain scrolling still scrolls the page.

minZoomnumber

How far out you can zoom.

Default0.7
maxZoomnumber

How far in you can zoom.

Default2
hoverTiltnumber

How much the model leans toward the cursor. 0 turns it off.

Default0.15
floatnumber

Gentle floating above the shadow. 0 turns it off.

Default0.3
shadowboolean

Soft contact shadow under the model.

shadowOpacitynumber

Darkness of the shadow.

Default0.45
fitnumber

How much of the viewer the model fills. It is framed automatically.

Default0.8
offsetXnumber

Moves the model sideways, from -1 to 1.

offsetYnumber

Moves the model up or down, from -1 to 1.

startAnglenumber

Starting angle around the model, in degrees.

Default-30
tiltnumber

Starting tilt toward the viewer, in degrees.

Default10
resetOnDoubleClickboolean

Double click to return to the starting view.

onModelLoaded() => void

Called once the model has loaded.

refRef

Exposes capture(type?), which returns the current frame as an image data URL.

Extra class names for the container.

Inline styles for the container.

Dependencies

3 required packages

npm install three @react-three/fiber @react-three/drei