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.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

For a direct Playwright screenshot that should not vary because of motion, pass animations: 'disabled' to page.screenshot() or a locator’s screenshot() method. Direct screenshots otherwise allow animations by default. For Playwright Test visual assertions, toHaveScreenshot() already disables animations by default and waits for two consecutive screenshots to match.

Choose the right screenshot behavior

“Handle animations” can mean two different things: capture the page as it is moving, or make a screenshot stable enough to compare with a baseline. Playwright exposes both behaviors. A direct screenshot is a capture operation; a screenshot assertion is a test-runner check that also waits for visual stability.

Capture method Animation default Best suited to
page.screenshot() or locator screenshot() allow A capture where the page’s normal animation behavior should remain in effect.
Playwright Test toHaveScreenshot() disabled Visual regression assertions that need a stable image for comparison.

The API option is animations, and the documented values are 'allow' and 'disabled'. See the official Page screenshot API, Locator screenshot API, and PageAssertions API.

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

Disable animations in a direct screenshot

Use animations: 'disabled' in the screenshot options. This works for a full page or a specific locator, so choose the narrowest capture that matches what you intend to inspect.

#1 Best Overall
Sale
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 with npm install playwright, then save this as capture.js. Run it with node capture.js. It navigates to a page, saves a full-page capture, and saves a separate element capture.

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

(async () => {
  const browser = await chromium.launch();
  try {
    const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
    await page.goto('https://example.com', { waitUntil: 'load' });

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

    await page.locator('h1').screenshot({
      path: 'heading.png',
      animations: 'disabled'
    });
  } finally {
    await browser.close();
  }
})();

Replace the example URL and selector with the page and element you need. A locator screenshot captures that element rather than the whole page; the animation setting applies to the capture in either case. If you want normal animation behavior for one particular capture, set animations: 'allow' explicitly or omit the option, since allow is the direct screenshot default.

What “disabled” actually does

It does not simply freeze every animation at whichever frame happened to be on screen when capture began. Playwright treats finite and infinite animations differently:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Finite animations: Playwright fast-forwards them to completion. This can fire a transitionend event, so application code listening for that event may run as part of the capture.
  • Infinite animations: Playwright cancels them to their initial state for the screenshot, then replays them afterward.

That distinction matters when the desired image is a particular intermediate state. Disabling motion is useful for stable endpoints, but it is not a request to preserve an arbitrary animation frame. If the test is specifically about an in-progress animation, leave it allowed and control the page’s state through the application or test setup rather than expecting disabled to select a frame.

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

Use screenshot assertions for visual regression tests

If the purpose is comparing rendered output against a baseline, use Playwright Test’s screenshot assertion rather than taking a direct screenshot and comparing files yourself. The assertion waits until two consecutive screenshots match before comparing, and its animations option defaults to disabled.

Runnable Playwright Test example

Install the test runner with npm install --save-dev @playwright/test. Save this as tests/home.spec.js and run npx playwright test.

const { test, expect } = require('@playwright/test');

test('home page visual baseline', async ({ page }) => {
  await page.goto('https://example.com');
  await expect(page).toHaveScreenshot('home.png');
});

test('navigation element baseline', async ({ page }) => {
  await page.goto('https://example.com');
  await expect(page.getByRole('heading', { name: 'Example Domain' }))
    .toHaveScreenshot('heading.png');
});

Screenshot assertions are a Playwright Test runner feature, not a method on a plain Playwright Page. The two assertion forms above compare a page and a locator respectively. If the assertion should preserve motion instead, supply { animations: 'allow' } in its options; otherwise its default is the stable, disabled behavior.

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

Reduced motion is a separate control

Playwright can also emulate the browser’s prefers-reduced-motion media feature. This is different from the screenshot operation’s animations option:

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.
  • animations: 'disabled' specifies how Playwright handles animations for that screenshot or assertion.
  • reducedMotion: 'reduce' emulates a media preference that page code and styles may respond to. The documented default is 'no-preference'.

For example, set the preference in Playwright Test configuration when you want the application itself to render its reduced-motion experience:

const { defineConfig } = require('@playwright/test');

module.exports = defineConfig({
  use: {
    reducedMotion: 'reduce'
  }
});

The page must respond to that media feature for its appearance to change. The setting does not replace the screenshot option: choose both deliberately if you need the application’s reduced-motion styling and Playwright’s animation handling. The TestProject API and TestOptions API document the test configuration setting.

Why animated screenshots fail or differ

A visual test can vary when a direct screenshot catches an animated element at a different point in its cycle, or when a moving page has not yet settled into the expected rendered state. The direct screenshot default allows motion; a test that assumes it disables it without setting the option may therefore produce inconsistent images. For assertions, Playwright’s animation default and consecutive-match wait address those sources of variation, but they do not guarantee that every other part of a page is deterministic.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Direct capture differs between runs: set animations: 'disabled' for the shot if the final/static state is what matters.
  • Test needs the animated appearance: use animations: 'allow' explicitly so the intent is clear. The captured frame can depend on when the screenshot occurs.
  • Expected transition callback does not run as expected: account for the fact that fast-forwarding a finite animation can fire transitionend.
  • Looping animation changes after capture: infinite animations are canceled for the image and replayed afterward; do not treat the screenshot as a permanent alteration to the page.
  • Reduced-motion styling is missing: check that the application actually defines behavior for prefers-reduced-motion; emulating the preference alone does not create alternate styles.
  • Assertion still differs: first determine whether the changing region is animated or whether some other page state is changing. The assertion’s animation default only addresses animation handling; it does not establish that all application content is identical.

Performance, repeatability, and cost

Playwright’s documented handling for finite animations fast-forwards them, while infinite animations are canceled for the capture and replayed after it. That behavior helps avoid waiting through a complete animation cycle simply to obtain a static endpoint. Screenshot assertions additionally wait for consecutive matching images, so that stability check is part of the assertion workflow rather than a general guarantee attached to every direct screenshot.

Rank #4
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 repeatable visual tests, make the choice based on the behavior under test: disable animation for static baselines, allow it when motion itself is the subject, and use reduced-motion emulation only when the site’s response to that preference is being tested. The cited Playwright documentation describes API behavior but does not publish a benchmark or numeric performance guarantee for these settings.

Playwright itself is browser automation you run in your environment; the cited API documentation does not state a per-screenshot fee. If you need a hosted website screenshot endpoint instead of setting up a browser capture, ScreenshotNeo is another option. It is not a Playwright animation control, so use Playwright when you need the animation semantics described above.

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 is a website screenshot API and MCP server for developers. Its one-request API accepts a URL and returns a clean screenshot or PDF. The following cURL request saves a capture of Stripe as a WebP file. See the ScreenshotNeo API documentation for request details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

For Python, the same request pattern is:

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
    timeout=90,
)
open("shot.webp", "wb").write(r.content)

In Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
  • Cookie and consent banners are accepted like a visitor and more than 60 known consent platforms, newsletter popups, and chat widgets are removed before capture; each step can be turned off.
  • Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. Responses identify the page verdict and billing status in X-Page-Verdict and X-Billed headers.
  • An MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
  • The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Every feature is available on every plan.

Try ScreenshotNeo if a hosted capture workflow fits your use case, or sign up free for 1,000 screenshots a month with no card.

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.

Frequently Asked Questions

Can I capture the exact middle frame of a Playwright animation with `animations: ‘disabled’`?

No. Disabled handling fast-forwards finite animations and cancels infinite ones to their initial state during capture; it is not an arbitrary-frame pause.

Does `reducedMotion: ‘reduce’` disable animations in the screenshot call?

No. It emulates the page’s reduced-motion media preference. The screenshot API’s separate `animations` option controls how Playwright handles animations during capture.

Does a direct `page.screenshot()` wait for two matching images by default?

No. The documented two-consecutive-match wait belongs to Playwright Test’s `toHaveScreenshot()` assertions.

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

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.