Animated GIF toggle component

Allows fields containing animated GIFs to toggle between a static image and the animated GIF on user interaction.
id: animated_gif_toggle
title: 'Animated GIF toggle'
description: 'Allows fields containing animated GIFs to toggle between a static image and the animated GIF on user interaction.'
class: Drupal\ambientimpact_media\Plugin\AmbientImpact\Component\AnimatedGIFToggle
provider: ambientimpact_media
fieldAttributes:
  enabled: data-animated-gif-toggle-field-enabled
  url: data-animated-gif-toggle-field-url
component.animated_gif_toggle:
  js:
    components/animated_gif_toggle/animated_gif_toggle.js:
      attributes:
        defer: true
  dependencies:
    - ambientimpact_media/component.media_play_overlay
    - ambientimpact_core/framework