Animated Image
GIF/video player with play/pause controls.
<rhx-animated-image>
Examples
Play/Pause

<rhx-animated-image
rhx-src="https://media.giphy.com/media/xT9IgzoKnwFNmISR8I/giphy.gif"
rhx-alt="Animated loading" />
Initially Paused

<rhx-animated-image
rhx-src="https://media.giphy.com/media/xT9IgzoKnwFNmISR8I/giphy.gif"
rhx-alt="Paused animation"
rhx-play="false" />
Properties
| Property | Type | Default | Description |
|---|---|---|---|
rhx-src |
string |
- |
URL of the animated image or video |
rhx-alt |
string |
- |
Alt text for the image |
rhx-play |
bool |
true |
Whether the animation starts playing |
Accessibility
- Play/pause button has an
aria-labelthat updates to reflect the current state ("Pause animation" / "Play animation"). - The image element receives
alttext fromrhx-altfor screen reader users. - Respects the
prefers-reduced-motionmedia query by starting in a paused state.