2.5D camera projection

Mood track «Infinite Perspective» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
3D video rendered with Blender. Character: Ellie © Blender Studio (CC BY 4.0); square: Poly Haven (CC0)

Camera projection · 2.5D parallax · Proyección de cámara · Foto animata in 3D

A photo or painting is split into layers and projected onto simple 3D planes or volumes. Moving the camera gives the flat image depth.

Era
2002 – today
Origin
Stati Uniti
Domain
MotionImages
Mood
immersivedreamyfuturistic
Explore

Live demo

View code
<div class="v stage"><div class="cam"><div class="p sky"><svg viewBox="0 0 640 260" preserveAspectRatio="xMidYMid slice"><defs><pattern id="aw" width="16" height="10" patternUnits="userSpaceOnUse"><rect class="s1" width="8" height="10" fill="#C8423B"/><rect class="s2" x="8" width="8" height="10" fill="#F6EEDC"/></pattern><pattern id="wn" width="34" height="42" patternUnits="userSpaceOnUse"><rect x="6" y="6" width="3" height="24" fill="#5E7F5E"/><rect x="9" y="6" width="16" height="24" fill="#8FB8C4"/><rect x="25" y="6" width="3" height="24" fill="#5E7F5E"/></pattern><pattern id="wm" width="18" height="24" patternUnits="userSpaceOnUse"><rect x="5" y="6" width="7" height="11" fill="#6E8F7A"/></pattern><linearGradient id="sk" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9FD3E6"/><stop offset="1" stop-color="#F7E6C4"/></linearGradient></defs><rect width="640" height="260" fill="url(#sk)"/><path d="M-100 170Q120 100 320 140T760 130V260H-100Z" fill="#A9C7B0"/><circle cx="520" cy="54" r="22" fill="#FFF3C9"/></svg></div><div class="p fac"><svg viewBox="0 0 640 260" preserveAspectRatio="xMidYMid slice"><defs><pattern id="aw" width="16" height="10" patternUnits="userSpaceOnUse"><rect class="s1" width="8" height="10" fill="#C8423B"/><rect class="s2" x="8" width="8" height="10" fill="#F6EEDC"/></pattern><pattern id="wn" width="34" height="42" patternUnits="userSpaceOnUse"><rect x="6" y="6" width="3" height="24" fill="#5E7F5E"/><rect x="9" y="6" width="16" height="24" fill="#8FB8C4"/><rect x="25" y="6" width="3" height="24" fill="#5E7F5E"/></pattern><pattern id="wm" width="18" height="24" patternUnits="userSpaceOnUse"><rect x="5" y="6" width="7" height="11" fill="#6E8F7A"/></pattern><linearGradient id="sk" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9FD3E6"/><stop offset="1" stop-color="#F7E6C4"/></linearGradient></defs><rect x="-10" y="35" width="150" height="190" fill="#D9B38C"/><rect x="-14" y="29" width="158" height="8" fill="#000" fill-opacity=".14"/><rect x="0" y="42" width="136" height="126" fill="url(#wn)"/><rect x="49" y="181" width="32" height="44" fill="#4B6A53"/><rect x="352" y="20" width="300" height="205" fill="#E3C9A6"/><rect x="348" y="14" width="308" height="8" fill="#000" fill-opacity=".14"/><rect x="374" y="42" width="272" height="126" fill="url(#wn)"/><rect x="486" y="181" width="32" height="44" fill="#7A4E3A"/><g class="cafe" transform="translate(150 55)"><rect class="wall" y="10" width="200" height="160" fill="#EAD7B7"/><rect class="cor" x="-6" width="212" height="14" fill="#B5835A"/><rect class="sign" x="62" y="24" width="76" height="22" rx="2" fill="#2F3E46"/><text class="st" x="100" y="39.5" text-anchor="middle" font-family="sans-serif" font-weight="700" font-size="11" letter-spacing="2" fill="#F6EEDC">CAFFÈ</text><path class="awn" d="M10 60h180l16 30H-6z" fill="url(#aw)"/><path class="s1" d="M-6 90q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0q7 10 14 0z" fill="#C8423B"/><rect class="win" x="16" y="104" width="100" height="58" fill="#A9CFD8" stroke="#6B4430" stroke-width="4"/><path d="M66 104v58" stroke="#6B4430" stroke-width="3"/><rect class="door" x="134" y="100" width="46" height="70" fill="#6B4430"/><rect x="140" y="106" width="34" height="30" fill="#A9CFD8" opacity=".7"/><circle cx="172" cy="140" r="2.5" fill="#E9C46A"/></g><rect x="-20" y="225" width="680" height="60" fill="#B9B1A3"/><rect x="-20" y="225" width="680" height="4" fill="#8E877B"/></svg></div><div class="p sub"><svg viewBox="0 0 640 260" preserveAspectRatio="xMidYMid slice"><defs><pattern id="aw" width="16" height="10" patternUnits="userSpaceOnUse"><rect class="s1" width="8" height="10" fill="#C8423B"/><rect class="s2" x="8" width="8" height="10" fill="#F6EEDC"/></pattern><pattern id="wn" width="34" height="42" patternUnits="userSpaceOnUse"><rect x="6" y="6" width="3" height="24" fill="#5E7F5E"/><rect x="9" y="6" width="16" height="24" fill="#8FB8C4"/><rect x="25" y="6" width="3" height="24" fill="#5E7F5E"/></pattern><pattern id="wm" width="18" height="24" patternUnits="userSpaceOnUse"><rect x="5" y="6" width="7" height="11" fill="#6E8F7A"/></pattern><linearGradient id="sk" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9FD3E6"/><stop offset="1" stop-color="#F7E6C4"/></linearGradient></defs><g class="duo" transform="translate(424 225)"><g><path class="lg" d="M-5-28L-6 0M5-28L7 0" stroke="#2C3E50" stroke-width="5" stroke-linecap="round"/><path d="M-10 1h6M5 1h7" stroke="#23262B" stroke-width="4" stroke-linecap="round"/><path class="dr" d="M-8-74h16l9 48h-34z" fill="#E9A23B"/><rect class="sk" x="-2" y="-80" width="4" height="7" fill="#E8B48F"/><path d="M-8-75h16v5h-16z" fill="#2A9D8F"/><path class="arm" d="M6-70L22-64" stroke="#E8B48F" stroke-width="4.5" stroke-linecap="round"/><circle class="hr" cy="-88" r="11" fill="#4A2C1D"/><circle class="hr" cx="-10" cy="-94" r="6" fill="#4A2C1D"/><circle class="sk" cx="2" cy="-86" r="8.5" fill="#E8B48F"/><path class="hr" d="M-8-90a10 10 0 0 1 18-2c-6 1-12 2-18 2z" fill="#4A2C1D"/><circle cx="6" cy="-86" r="1.3" fill="#23262B"/></g><g transform="translate(-29 -20)"><g class="wh"><circle r="20" fill="none" stroke="#23262B" stroke-width="4"/><path d="M-18 0h36M0-18v36M-13-13l26 26M13-13l-26 26" stroke="#23262B" stroke-width="1.1"/><circle r="2.5" fill="#23262B"/></g><g transform="translate(62 0)"><g class="wh"><circle r="20" fill="none" stroke="#23262B" stroke-width="4"/><path d="M-18 0h36M0-18v36M-13-13l26 26M13-13l-26 26" stroke="#23262B" stroke-width="1.1"/><circle r="2.5" fill="#23262B"/></g></g><path class="fr" d="M0 0L28 0L48-30L18-30Z M28 0L14-40 M48-30L62 0 M48-30L51-44" fill="none" stroke="#1F6F8B" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><circle cx="28" cy="0" r="4" fill="#23262B"/><path d="M7-42h15M45-45h13" stroke="#23262B" stroke-width="4.5" stroke-linecap="round"/><rect class="bk" x="54" y="-40" width="18" height="13" rx="2" fill="#C9A16B"/><circle cx="58" cy="-42" r="3" fill="#E76F51"/><circle cx="65" cy="-43" r="3" fill="#F4A261"/></g></g></svg></div><div class="p fgp"><svg viewBox="0 0 640 260" preserveAspectRatio="xMidYMid slice"><defs><pattern id="aw" width="16" height="10" patternUnits="userSpaceOnUse"><rect class="s1" width="8" height="10" fill="#C8423B"/><rect class="s2" x="8" width="8" height="10" fill="#F6EEDC"/></pattern><pattern id="wn" width="34" height="42" patternUnits="userSpaceOnUse"><rect x="6" y="6" width="3" height="24" fill="#5E7F5E"/><rect x="9" y="6" width="16" height="24" fill="#8FB8C4"/><rect x="25" y="6" width="3" height="24" fill="#5E7F5E"/></pattern><pattern id="wm" width="18" height="24" patternUnits="userSpaceOnUse"><rect x="5" y="6" width="7" height="11" fill="#6E8F7A"/></pattern><linearGradient id="sk" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9FD3E6"/><stop offset="1" stop-color="#F7E6C4"/></linearGradient></defs><g class="plant" transform="translate(372 225) scale(1.15)"><path class="pot" d="M-14 -26h28l-4 26h-20z" fill="#C4622D"/><rect x="-16" y="-30" width="32" height="6" rx="2" fill="#A94F22"/><g class="leaf" fill="#4F7A45"><circle cy="-44" r="14"/><circle cx="-11" cy="-36" r="10"/><circle cx="11" cy="-37" r="10"/><circle cy="-58" r="9"/></g></g><g><rect x="597" y="32" width="6" height="230" fill="#1E2328"/><path d="M600 32q0-14 18-14" fill="none" stroke="#1E2328" stroke-width="5"/><path d="M610 22h18l-4 12h-10z" fill="#1E2328"/></g></svg></div></div><p class="tag">PROIEZIONE 2.5D</p></div>
body{margin:0;background:#1b1b1b;overflow:hidden}.v{position:relative;height:100%;overflow:hidden}.v svg,.L svg{display:block;width:100%;height:100%}.L{position:absolute;inset:0}.wh{transform-box:fill-box;transform-origin:center}.tag{position:absolute;left:12px;top:10px;margin:0;font:600 12px/1 'Space Mono',monospace;letter-spacing:.16em;color:#fff;background:#000a;padding:6px 9px;border-radius:3px}.stage{perspective:800px;background:#9FD3E6}.cam{position:absolute;inset:0;transform-style:preserve-3d}.p{position:absolute;inset:0}.p.sky{transform:translateZ(-420px) scale(2.1)}.p.fac{transform:translateZ(-120px) scale(1.15)}.p.sub{transform:translateZ(40px) scale(.95)}.p.fgp{transform:translateZ(150px) scale(.81)}.p::after{content:'';position:absolute;inset:0;opacity:0;background:linear-gradient(#7CF7FF66 1px,transparent 1px) 0 0/32px 32px,linear-gradient(90deg,#7CF7FF66 1px,transparent 1px) 0 0/32px 32px;outline:2px solid #7CF7FF;outline-offset:-2px}.p.sub::after,.p.fgp::after{inset:30% 22% 0 52%}
@media (prefers-reduced-motion:no-preference){.cam{animation:cm 8s ease-in-out infinite alternate}.p::after{animation:wf 8s ease-in-out infinite}}
@keyframes cm{from{transform:translateX(-40px) rotateY(-16deg)}to{transform:translateX(40px) rotateY(16deg)}}@keyframes wf{0%,35%,65%,100%{opacity:0}45%,55%{opacity:.9}}

Characteristics

  • Still image split into layers
  • Parallax between subject and background
  • Small camera rotations
  • Simple geometry under the image
  • Used for archive photos and matte paintings

Palette

Click a swatch to copy it

Typography

Headings · Space Mono 2.5D camera projection

Body · Inter A photo or painting is split into layers and projected onto simple 3D planes or volumes. Moving the camera gives the flat image depth.

Motion

Easing
ease-in-out
Typical duration
6–10 s
Techniques
CSS perspective + translateZ su livelli, scala di compensazione per la profondità, griglia wireframe in sovrimpressione, Nuke, Blender o After Effects con camera 3D

Accessibility (reduced motion)

Show the still composite with no rotation or grid.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: 2.5D camera projection (Camera projection, 2.5D parallax).
A photo or painting is split into layers and projected onto simple 3D planes or volumes. Moving the camera gives the flat image depth.
Characteristics: Still image split into layers, Parallax between subject and background, Small camera rotations, Simple geometry under the image, Used for archive photos and matte paintings.
Palette: #9FD3E6, #E3C9A6, #C8423B, #7CF7FF, #E9A23B, #1E2328.
Typography: headings in Space Mono, body text in Inter (Google Fonts or equivalents).
Mood: immersive, dreamy, futuristic.
Motion: easing ease-in-out, typical duration 6–10 s; techniques: CSS perspective + translateZ su livelli, scala di compensazione per la profondità, griglia wireframe in sovrimpressione, Nuke, Blender o After Effects con camera 3D.
With prefers-reduced-motion: Show the still composite with no rotation or grid.
References: «The Kid Stays in the Picture» (2002), matte painting digitali del cinema anni 2000, documentari storici con foto d'archivio animate.

For images

Create the image in this visual style: 2.5D camera projection (Camera projection, 2.5D parallax).
A photo or painting is split into layers and projected onto simple 3D planes or volumes. Moving the camera gives the flat image depth.
Characteristics: Still image split into layers, Parallax between subject and background, Small camera rotations, Simple geometry under the image, Used for archive photos and matte paintings.
Keywords: 2.5D parallax still photograph, woman with bicycle cut out in front of café, subtle depth between layers, slight camera rotation, visible wireframe planes overlay, archival photo look, cinematic depth.
Palette: #9FD3E6, #E3C9A6, #C8423B, #7CF7FF, #E9A23B, #1E2328.
Mood: immersive, dreamy, futuristic.
Avoid: fully flat collage, full CGI render, fisheye.

Relations

Similar to: ParallaxParallaxSimilar to: WebGL 3D SceneWebGL 3D Scene2.5D camera projection
Similar toSee in the graph →

References

  • «The Kid Stays in the Picture» (2002)
  • matte painting digitali del cinema anni 2000
  • documentari storici con foto d'archivio animate