Rack focus
Mood track «Immersed» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Rack focus · Pull focus · Cambio de foco · Fuoco a seguire
During the shot focus shifts from a near subject to a far one, or vice versa. The viewer's eye is guided without cuts or camera moves.
- Era
- 1930 – today
Live demo
View code
<div class="frame"><div class="far"><span class="l l1"></span><span class="l l2"></span><span class="l l3"></span><span class="girl"></span></div><div class="near"><span class="glass"></span><span class="note">Ti aspetto.</span></div><p>FUOCO <b>vicino → lontano</b></p></div> body{margin:0;background:#101820;overflow:hidden}
.frame{position:relative;height:100%;overflow:hidden;background:linear-gradient(#2F4858,#101820)}
.far,.near{position:absolute;inset:0}
.far{filter:blur(7px)}
.l{position:absolute;border-radius:50%;background:#F2C57C;opacity:.7}
.l1{left:12%;top:16%;width:22px;height:22px}.l2{left:70%;top:12%;width:30px;height:30px}.l3{left:84%;top:40%;width:18px;height:18px}
.girl{position:absolute;left:66%;bottom:16%;width:48px;height:140px;border-radius:24px 24px 6px 6px;background:#7D5A50}
.girl::before{content:"";position:absolute;left:8px;top:-38px;width:34px;height:34px;border-radius:50%;background:#EFE9E1}
.glass{position:absolute;left:12%;bottom:0;width:90px;height:150px;border:3px solid #EFE9E1cc;border-top:none;border-radius:0 0 26px 26px;background:linear-gradient(transparent 35%,#F2C57Caa 35%)}
.note{position:absolute;left:36%;bottom:22px;padding:10px 14px;background:#EFE9E1;color:#101820;font:italic 22px 'DM Serif Display',serif;transform:rotate(-4deg)}
p{position:absolute;right:14px;top:12px;margin:0;font:500 12px 'DM Sans',sans-serif;color:#EFE9E1;letter-spacing:.08em}
p b{color:#F2C57C}
@media (prefers-reduced-motion:no-preference){.far{animation:ff 5s ease-in-out infinite;animation-delay:-2s}.near{animation:nf 5s ease-in-out infinite;animation-delay:-2s}}
@keyframes ff{0%,35%{filter:blur(7px)}50%,85%{filter:blur(0)}100%{filter:blur(7px)}}
@keyframes nf{0%,35%{filter:blur(0)}50%,85%{filter:blur(6px)}100%{filter:blur(0)}} Characteristics
- Shallow depth of field
- Two planes separated in depth
- Soft blur and bokeh
- Focus pull lasting 1–2 seconds
- Reveals a detail or a character
Palette
Click a swatch to copy it
Typography
Headings · DM Serif Display Rack focus
Body · DM Sans During the shot focus shifts from a near subject to a far one, or vice versa. The viewer's eye is guided without cuts or camera moves.
Motion
- Easing
ease-in-out- Typical duration
- 0,8–2 s
- Techniques
- filter blur alternato tra livelli, backdrop-filter per piani in profondità, Three.js DepthOfField / BokehPass, follow focus sull'obiettivo
Accessibility (reduced motion)
Show the foreground sharp and the background blurred, with no pull.
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: Rack focus (Pull focus). During the shot focus shifts from a near subject to a far one, or vice versa. The viewer's eye is guided without cuts or camera moves. Characteristics: Shallow depth of field, Two planes separated in depth, Soft blur and bokeh, Focus pull lasting 1–2 seconds, Reveals a detail or a character. Palette: #101820, #2F4858, #F2C57C, #EFE9E1, #7D5A50. Typography: headings in DM Serif Display, body text in DM Sans (Google Fonts or equivalents). Mood: subtle, elegant, dramatic. Motion: easing ease-in-out, typical duration 0,8–2 s; techniques: filter blur alternato tra livelli, backdrop-filter per piani in profondità, Three.js DepthOfField / BokehPass, follow focus sull'obiettivo. With prefers-reduced-motion: Show the foreground sharp and the background blurred, with no pull. References: Mike Nichols «Il laureato» (1967), «Jurassic Park» (1993), «Parasite» (2019).
For images
Create the image in this visual style: Rack focus (Pull focus). During the shot focus shifts from a near subject to a far one, or vice versa. The viewer's eye is guided without cuts or camera moves. Characteristics: Shallow depth of field, Two planes separated in depth, Soft blur and bokeh, Focus pull lasting 1–2 seconds, Reveals a detail or a character. Keywords: rack focus film still, sharp foreground glass in focus with blurred figure behind, shallow depth of field, creamy bokeh lights, anamorphic lens, warm amber and teal, intimate cinematic moment. Palette: #101820, #2F4858, #F2C57C, #EFE9E1, #7D5A50. Mood: subtle, elegant, dramatic. Avoid: deep focus everything sharp, flat lighting, harsh digital noise.
Relations
Similar to
References
- Mike Nichols «Il laureato» (1967)
- «Jurassic Park» (1993)
- «Parasite» (2019)