Compares two images with an adjustable split.
“Multimedia is a form of communication that uses a combination of different content forms.” — Wikipedia: Multimedia. This quote supplies general domain context, not an API definition.
Category: Media · Availability: Core · Maturity: Stable.
Source: Web Awesome component source (MyST GitHub transformer); official component documentation.
Live preview¶
Static reference (works without JavaScript)¶

The image and copyable HTML example below remain available if the interactive widget fails to initialize. The widget adds component behavior; it does not provide the only readable content.
Markdown code snippet¶
<wa-comparison position="50">
<img slot="before" class="sc-demo-grayscale" src="./images/rocket.jpg" alt="Grayscale Falcon 9 launch">
<img slot="after" src="./images/rocket.jpg" alt="Color Falcon 9 launch">
</wa-comparison>
<style>
.sc-demo-grayscale { filter: grayscale(1); }
</style>Usage and API notes¶
The views use the exact same local photograph; a CSS grayscale filter guarantees aligned before/after content. The comparison handle is keyboard accessible. position sets the initial split, from 0 through 100.
Media licenses and canonical sources: Showcase media.