3D phone

A rounded 3D phone with an editable React screen, camera pose, glass, and metal edges.

0:00 / 0:01

Customize

0
24
0.7

Installation

pnpm odori add component phone-3d

Edit the source in videos/components/phone-3d/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Interface
Recommended duration
180 frames · 6s
Minimum duration
1 frames · 0.03s
Entrance
0 frames
Exit
0 frames
Reduced motion
The phone is static unless the caller changes its pose; set animate to false in the preview.
Requires
Odori
Content limits
none

Props

PropTypeDefaultRequired
childrenReactNode——
screenWidthScreen coordinates are stable while the camera moves.number——
screenHeightnumber——
bezelnumber——
radiusnumber——
depthnumber——
posePartial<PhonePose>——
designHeightShort edge of the composition used to author camera offsets and scale.number——
lightWorld-space rim illumination, from 0 to 1.number——

Related components

All components