Skip to content
IndexRequest a UIAboutContact

Rack Focus Shift

Shift focus between a near and a far subject at slow or fast speed to see how attention moves.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Rack focus shot, 4 seconds, shallow depth of field at f/1.8: in the foreground a woman's hand holds a ringing phone, sharp and detailed, while a man in the doorway behind her is soft and blurred. At two seconds the focus slowly shifts over 1.5 seconds to the man in the background, who becomes sharp while the hand and phone dissolve into soft blur, warm indoor light, static locked-off camera, cinematic realism, subtle film grain. Variation: a fast rack of half a second for a sudden realisation. Negative: camera zoom, camera shake, both subjects sharp, flickering focus, morphing faces.

About this pattern

Definition

A rack focus changes the focus plane during a shot, moving sharpness from one subject to another. The viewer's attention follows the sharp subject.

When to use it

  • Reveals information (a clue in the background), connects two subjects or marks a change in emotion without cutting.
  • Slow racks feel thoughtful and tense; fast racks feel startled or comedic.
  • It needs a shallow depth of field (wide aperture, longer lens) and subjects at clearly different distances.

What the controls do

  • Focus on near, focus on far; speed switch slow or fast; Auto alternates every two seconds.

Motion & timing

  • Blur transitions between sharp and 8px over 1.6s (slow) or 0.5s (fast) with ease-in-out.
  • Reduced motion: focus switches instantly.

Tips & variations

  • Works at any size, but blur radius should scale with the frame; avoid tiny subjects that vanish when blurred.
  • State the speed in seconds in prompts.

Code of this live preview

HTML
<div class="bx"><div class="sc"><div class="o near" id="near" aria-hidden="true"><i></i></div><div class="o far" id="far" aria-hidden="true"><b></b></div></div>
<div class="row"><div class="pre" id="pre" role="group" aria-label="Focus"><button data-f="near" aria-pressed="true">Focus near</button><button data-f="far" aria-pressed="false">Focus far</button></div><label class="sw"><input id="fast" type="checkbox"> Fast</label></div><label class="sw"><input id="auto" type="checkbox"> Auto</label></div>

Related patterns

Aperture & Depth of Field

↗
Aperture & Depth of FieldLens & Shot Size

Dolly Zoom

↗
Dolly ZoomCamera Movement

Pan, Tilt, Push-in and Truck

↗
Pan, Tilt, Push-in and TruckCamera Movement