How Does SMIL Distinguish Wipes and Expands?
Synchronized Multimedia Integration Language (SMIL) differentiates
between transition wipes and transition expands through its standardized
transition taxonomy, specifically utilizing the type and
subtype attributes defined in the SMIL Transition Effects
Module. While both effects control how visual media enters or exits a
layout, SMIL treats wipes as progressive masking operations that reveal
static underlying content, whereas expands alter the geometry, scale, or
visible bounds of the media object during the transition timeline.
The SMIL Transition Model Architecture
SMIL handles transitions declaratively using elements such as
<transition> and
<transitionFilter>. Instead of requiring custom
keyframe scripting, the SMIL specification categorizes visual
transitions based on SMPTE (Society of Motion Picture and Television
Engineers) standards and custom multimedia extensions.
When a player renders a transition, it parses two key attributes:
type: Identifies the primary geometric family of the transition, such asbarWipe,irisWipe,slideWipe, orpushWipe.subtype: Refines the direction, origin, or pattern of the operation, such asleftToRight,topCenter, orcircle.
Transition Wipes: Static Revealing via Masks
In a SMIL wipe transition, the visual surface of the destination media remains fixed in its target coordinates throughout the duration of the transition. The rendering engine applies an animated clipping path or alpha mask across the media container.
Key characteristics of SMIL wipes include:
- Coordinate Invariance: Content pixels do not move, stretch, or translate.
- Progressive Exposure: The mask boundary advances
across the surface according to the
dur(duration) parameter, exposing the new media as if a physical curtain were being pulled back. - Standard Classifications: Common SMIL wipe types
include
barWipe,boxWipe,fourBoxWipe,ellipseWipe, andfanWipe.
Transition Expands: Geometric Scaling and Boundary Dilation
An expand transition in SMIL—often implemented under subtypes of iris, slide, or box geometries—fundamentally changes the perceptual size or boundary origin of the media object. Rather than sweeping a linear mask across a plane, an expand originates from a focal point (such as the center or a corner) and scales outward until the media achieves full layout dimensions.
Key characteristics of SMIL expands include:
- Origin-Centered Progression: Expands radiate
symmetrically or proportionally from a defined anchor point, specified
by subtypes like
center,cornersIn, orcornersOut. - Boundary Transformation: The visible viewport expands dynamically along two dimensions simultaneously, altering the spatial envelope of the incoming or outgoing element.
- Dynamic Media Displacement: In transitions such as push or slide expands, the media coordinates actively translate alongside the advancing transition edge rather than remaining anchored.
Syntax Comparison in SMIL Markup
The functional distinction is declared directly within the SMIL transition headers:
<!-- Linear Edge Wipe -->
<transition id="wipe1" type="barWipe" subtype="leftToRight" dur="2s" />
<!-- Center-Outward Expand -->
<transition id="expand1" type="irisWipe" subtype="circle" dur="2s" />By separating the geometric method (type) from the
directional flow (subtype), SMIL ensures the multimedia
engine executes the correct hardware or software rendering path—applying
an edge clip for wipes or dynamic shape dilation for expands.