Shapes & Visual FX

The Ken Burns documentary technique: Slow cinematic pan & zoom on hero banners

A static hero banner can feel lifeless after just a few seconds. I love teaching the classic Ken Burns documentary technique: a slow, hypnotic pan and zoom loop that breathes cinematic life and scale into your background photography using smooth GPU transforms.

📖 Read the Complete Tutorial: CSS Ken Burns Pan & Zoom Guide →
Image Ken Burns (Pan & Zoom)
WordPress & Elementor Integration

How to Use Ken Burns Pan & Zoom in Elementor

Bring static photography to life with cinematic slow-motion pan and zoom Ken Burns effects in Elementor in 3 simple steps.

1

Copy Elementor / WP Code

In the code studio above, switch to the Elementor / WP tab and click Copy to get the self-contained bundle with hardware-accelerated pan/zoom keyframes and image markup.

2

Insert an HTML Widget

In your WordPress dashboard, edit your hero header or story section with Elementor (Free or Pro). Drag an HTML widget onto your canvas.

3

Paste & Update Image URL

Paste the snippet into the HTML Code box. Replace the sample image link with your photo from the WordPress Media Library.

Features & Best Practices

🎬

Documentary Film Motion

Adds emotional depth and cinematic engagement to hero banners, storytelling sections, and travel photography.

âš¡

GPU Compositing (translate3d)

Utilizes translate3d and scale transforms exclusively on the compositor thread for silky smooth 60 FPS motion without jitter.

Frequently Asked Questions

How do I add a Ken Burns slow pan and zoom effect to images in Elementor?

Switch to the Elementor / WP tab in the generator above and click Copy. In WordPress, open your Elementor canvas, drag an HTML widget into your section, and paste the code snippet. Replace the sample image URL with your WordPress Media Library image URL.

Why does the image need to be scaled above 1.0 during pan movements?

When you translate (pan) an image inside an overflow: hidden container, moving the image exposes empty background gaps at the edges unless the image is scaled up slightly (typically 1.1x to 1.3x). The scale factor provides the extra visual buffer required for seamless edge-to-edge panning.

How does animation-direction: alternate help Ken Burns loops?

Standard normal direction abruptly snaps back to 0% when the loop finishes. Setting animation-direction: alternate causes the animation to smoothly glide backwards from 100% to 0%, creating an organic "breathing" effect with zero visual jarring.

Does a continuous Ken Burns animation drain battery on mobile devices?

Because this generator uses transform: translate3d() scale() and will-change: transform, the browser offloads rendering to the GPU compositor. However, for mobile battery conservation, it is best practice to pause the animation when the element is off-screen using an IntersectionObserver or CSS content-visibility.

What is the Ken Burns effect in web design?

The Ken Burns effect is a slow, cinematic camera panning and zooming animation applied to still photography, creating dramatic motion and storytelling in hero headers and slideshows.

How do I create a smooth Ken Burns effect with pure CSS keyframes?

Apply @keyframes kenburns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.15) translate(-2%, -2%); } } paired with animation: kenburns 20s ease-in-out infinite alternate;.

How do I prevent image edges from showing during Ken Burns scale animations?

Ensure the image container declares overflow: hidden; and initialize the image scale slightly above 1.0 (e.g. scale(1.05)) so translational camera pans never expose white container boundaries.

Does the Ken Burns effect respect prefers-reduced-motion?

Yes. Front-end code should always wrap continuous scale and pan keyframes inside @media (prefers-reduced-motion: no-preference) to disable motion for users with vestibular sensitivities.