# Animated Image [component-header:sl-animated-image] A component for displaying animated GIFs and WEBPs that play and pause on interaction. ```html preview ``` ## Examples ### WEBP Images Both GIF and WEBP images are supported. ```html preview ``` ### Setting a Width and Height To set a custom size, apply a width and/or height to the host element. ```html preview ``` ### Customizing the Control Box You can change the appearance and location of the control box by targeting the `control-box` part in your styles. ```html preview ``` [component-metadata:sl-animated-image]