A custom element for flexible GIF playback