October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Screenshot a Webpage with Delayed Animations and Dynamically Loaded Sections

Use Playwright locators to confirm dynamic content is ready, scroll to trigger lazy sections, and choose whether animations should settle or remain in motion before capture.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Wait for the specific content you need—not just the page navigation—to appear, handle any scroll-triggered loading, then capture. In Playwright, use an observable page condition such as a locator wait; choose whether animations should be disabled or left in motion based on the frame you want.

Why a page can look ready before it is ready to capture

A navigation milestone tells you about document loading, not necessarily whether an application has finished rendering a particular section. A page may add content after an API response, reveal it after scrolling, or continue animating after navigation completes. The reliable signal is a condition tied to the content or state you intend to capture.

As an Amazon Associate I earn from qualifying purchases.

Playwright supports navigation milestones including commit, domcontentloaded, load, and networkidle. The first three describe stages of navigation; none alone proves that a particular app-rendered section is ready. Playwright documents networkidle as a 500 ms period without network connections, and explicitly discourages relying on it for test readiness: “Don’t use this method for testing, rely on web assertions to assess readiness instead.” Playwright Page API

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Wait for the content you intend to capture

Start navigation with a milestone that lets your script begin interacting, then wait for an observable condition specific to the page. That might be a heading, a loaded image, a status change, or another locator that only appears once the desired content is present. There is no universal sleep duration that guarantees readiness on arbitrary sites; choose the condition based on the page.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Runnable JavaScript example

Install Playwright in your project with npm install playwright. Save the following as capture.js, replace the URL and heading with values from your page, and run it with node capture.js.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();

  try {
    await page.goto('https://example.com', { waitUntil: 'domcontentloaded' });
    await page.getByRole('heading', { name: 'Target section' }).waitFor();
    await page.screenshot({
      path: 'page.png',
      fullPage: true,
      animations: 'disabled'
    });
  } finally {
    await browser.close();
  }
})();

The heading is an example readiness signal, not a selector that will work on every site. Replace it with the actual content or state that matters. If only one component is needed, a locator screenshot can capture that element instead of the whole page. Playwright’s screenshot options are documented in its Screenshots guide.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Load sections that appear only after scrolling

fullPage: true captures the full scrollable page, but it should not be treated as a command to scroll through the page and trigger every lazy-loading behavior. Lazy images or iframes, IntersectionObserver-based content, scroll-triggered reveals, and virtualized lists may depend on actual viewport movement. A Playwright feature request discusses these cases and proposes a loadLazyContent option; that proposal is not a supported API to rely on. Playwright issue #40941

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When the target site uses scroll-triggered loading, scroll through relevant regions in viewport-sized steps, wait for the content that should appear, and only then make the full-page capture. For a known target section, a page-specific sequence can look like this:

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.
const target = page.getByRole('heading', { name: 'Lower-page section' });

while (!(await target.isVisible().catch(() => false))) {
  await page.evaluate(() => window.scrollBy(0, window.innerHeight));
  await page.waitForTimeout(100);
}

await target.waitFor();
await page.screenshot({ path: 'page.png', fullPage: true });

The short pause above is only an example of allowing a scroll event to be processed; it is not a universal readiness guarantee. Prefer waiting for the actual expected image, section, or state where the site exposes one. A virtualized list may remove earlier items as later ones enter view, so a full-page screenshot may not contain every item simultaneously; confirm the page’s own rendering behavior before depending on it.

Choose the animation state deliberately

For stable captures, disable animations. Playwright’s screenshot behavior fast-forwards finite animations to completion and cancels infinite animations at their initial state during capture, then resumes them afterward. That changes the state represented in the image. If you need an in-progress animation frame, leave animations enabled or arrange the desired state through page-specific logic. Playwright Page API

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

For visual regression checks, Playwright Test’s expect(page).toHaveScreenshot() retries until it gets two consecutive identical screenshots before comparing with the expectation. It also provides controls such as masking dynamic regions and applying a stylesheet. This stabilization behavior belongs to that assertion, not to every call to page.screenshot(). Playwright PageAssertions API

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Pick capture and readiness options for the job

Decision Option Use it when
Readiness Navigation milestone You need a point to begin interacting; it does not establish that a particular dynamic section is ready.
Readiness Explicit content locator or state You need evidence that the specific content to capture has appeared.
Capture area Viewport screenshot You want the currently visible frame.
Capture area fullPage: true You want the full scrollable document after ensuring relevant scroll-dependent content has rendered.
Motion Disable animations You want a stable, settled capture; note how finite and infinite animations are handled.
Motion Allow animations The intended image depends on motion continuing or a particular in-progress state.
Changing regions Mask or style them in a screenshot assertion The region is irrelevant to the visual check and would otherwise make comparisons vary.

Troubleshooting delayed or missing content

  • The screenshot is blank or missing a section: Navigation may have completed before the app-rendered content. Wait for a locator or application state that corresponds to the missing section.
  • Lower-page content is absent: The page may load it only when scrolled into view. Scroll through the relevant areas, verify the content appears, then capture the full page.
  • networkidle never occurs: Persistent connections or ongoing requests can prevent a quiet network period. Use a content-specific condition instead of treating network silence as universal readiness.
  • The animation looks frozen or finishes unexpectedly: Check whether screenshot animation handling is disabled. Use enabled animations or page-specific timing if an in-progress state is what you need.
  • A visual regression test changes between runs: Wait for a stable state and consider masking or styling only the dynamic areas that are irrelevant to the assertion. Use toHaveScreenshot() when its retry-until-identical behavior fits the test.
  • Older content disappears while scrolling: The page may use virtualization, rendering only items near the viewport. Confirm the site’s behavior; a full-page capture does not guarantee that virtualized items are all present together.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo takes webpage screenshots through a GET request and can return PNG, JPEG, WebP, or PDF. Its capture workflow accepts cookie and consent banners like a visitor and removes 60+ known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, with the result reported in X-Page-Verdict and X-Billed headers. It also provides an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents and other MCP clients.

For a simple one-call capture, replace the URL and API key below. See the ScreenshotNeo API documentation for options and response details.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo offers 1,000 screenshots a month free with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo.

Frequently Asked Questions

Does fullPage: true scroll through the page to trigger lazy loading?

No. It captures the full scrollable extent, but scroll-triggered behavior may require actual viewport movement first.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Should I use a fixed delay before every screenshot?

No fixed delay guarantees readiness across sites. Wait for a page-specific locator or state that signals the content you need.

Does page.screenshot() wait for two identical frames?

No. That retry behavior is part of Playwright Test’s toHaveScreenshot() assertion, not every ordinary screenshot call.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.