Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

How to Stop Animations from Causing Inconsistent Website Screenshots

Use Playwright's capture-time animation control, assert that the page is ready, and keep visual comparison environments consistent to reduce screenshot diffs.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Playwright, disable animation at capture time with animations: 'disabled'. For visual regression tests, toHaveScreenshot() already disables animations by default and waits for two consecutive screenshots to match before comparing them. This stabilizes animation-related captures, but it does not by itself ensure the page has loaded the intended data or that screenshots match across different machines.

Disable animations in Playwright screenshots

Pass animations: 'disabled' to a one-off screenshot or a screenshot assertion:

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

Playwright handles finite and infinite animations differently: finite animations are fast-forwarded to completion and fire transitionend; infinite animations are canceled at their initial state for the capture and resumed afterward. If you need to inspect a specific UI state, trigger that state deliberately and assert it before taking the screenshot. Otherwise, fast-forwarding a finite animation may capture its end state rather than the intermediate state you meant to test. See the Playwright PageAssertions documentation for screenshot assertion behavior.

Screenshot assertions and one-off captures

page.screenshot() creates a capture at the point your test calls it. Playwright Test’s toHaveScreenshot() additionally waits until two consecutive screenshots match before comparing the last image to the expectation. Screenshot assertions disable animations by default, so you normally do not need to repeat the option there unless you want the behavior to be explicit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#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

Matching consecutive images is a visual stability check, not proof that the page reached the right semantic state. Assert the expected content or application state before relying on a screenshot comparison.

Wait for the intended page state

Disabling animation does not make asynchronous work finish. Data requests, font loading, image loading, lazy-loaded content, and application updates can still change the page after capture begins. Use application-specific readiness signals and assertions, such as checking that the expected heading or record is visible, before capturing. Do not rely on a generic delay as a substitute for a meaningful readiness condition when the application exposes a better one.

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

Make visual baselines reproducible

Animation suppression will not make rendering pixel-identical across environments. Playwright identifies host operating system, browser version, browser settings, hardware, power source, and headless mode as possible sources of visual variation. Generate and compare baselines using a consistent environment, including the same browser build, OS, viewport, settings, and execution mode where possible. Playwright recommends running tests in the environment where the baseline was generated; see its visual comparisons guide.

Handle content that changes for reasons other than animation

A timestamp, rotating advertisement, live counter, or similar volatile region can cause diffs even after animations are disabled. If a region is outside the visual contract being tested, narrowly hide or normalize it with Playwright’s screenshot style or stylePath options, or use a suitable mask. Keep exclusions as small as possible: hiding a broad area can conceal a real layout or rendering defect. Playwright documents screenshot styles for filtering dynamic or volatile elements in its PageAssertions API and visual comparisons guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
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.

Use reduced-motion emulation for accessibility checks

prefers-reduced-motion: reduce is a user preference that lets a site provide a less animated experience. It is useful to test that accessibility behavior, but it is not the same as Playwright’s screenshot-time animation control and should not be assumed to stop every JavaScript-driven or Web Animations API effect. Chrome DevTools can emulate the preference in its Rendering tools; see Chrome’s CSS media feature emulation guide.

An illustrative author-side pattern is:

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

This is an implementation example, not a verbatim W3C requirement. Check that state changes remain understandable and test the application’s actual response. The W3C WAI’s C39 technique describes the reduced-motion query as an approach; WAI notes that its techniques are examples, not mandatory conformance requirements.

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

Common screenshot mismatch problems and fixes

Symptom Likely cause What to do
The capture shows an animation at different points from run to run The screenshot is taken while motion is progressing. In Playwright, use animations: 'disabled' for a direct capture, or use toHaveScreenshot() for a visual assertion. Confirm that fast-forwarding a finite animation gives you the state you want.
The image is stable but shows missing or outdated content Animation control does not wait for data or application updates. Wait for an application-specific readiness signal and assert the intended content before capture.
Differences persist on another CI worker or developer machine OS, browser build, settings, hardware, power source, or headless mode may differ. Run baseline generation and comparison in a consistent environment, preferably the one used to create the baseline.
Only a clock, ad, counter, or other small region differs The page contains genuinely changing content. Hide, normalize, or mask only that region with Playwright screenshot options; avoid excluding content the test should validate.
A reduced-motion setting does not stop the capture from changing The preference and screenshot-time suppression have different purposes, and the page may have motion not governed by that CSS preference. Use Playwright’s documented capture control for screenshot consistency; separately test the site’s reduced-motion behavior if required.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Framework scope: do not assume the same option elsewhere

The animations setting above is Playwright-specific. Puppeteer’s screenshot guide covers page and element captures, but does not establish an equivalent animation-disable option. Check the current API for your framework rather than copying Playwright’s setting into another runner. See the Puppeteer screenshot guide.

Or skip the browser setup

If you want a screenshot API instead of configuring browser automation, ScreenshotNeo accepts one GET request with a URL and returns an image or PDF. Its clean-shot steps accept cookie and consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, with the result identified in response headers. Its MCP server offers screenshot and page-information tools for AI agents, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000.

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.

Example cURL request (replace the URL with the page you want to capture):

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://stripe.com -o shot.webp

See the ScreenshotNeo documentation for API details. Sign up for 1,000 free screenshots a month, with no card required.

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. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

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.