Scrolling SVG
This component is an implementation of Scroll Magic with an SVG.
{{ attach_library('h4h_theme/scrolling-svg') }}
{% import '@h4h_theme/scrolling-svg/svg.twig' as svg %}
{%
  set classes = [
    'scrolling-svg',
    modifier ? modifier|join(' ')|trim,
  ]|join(' ')|trim
%}
<figure class="scrolling-svg {{ classes }}" {{ extra_attributes }}>
  {{ svg.get(svg_filename, theme_path) }}
  {% if caption %}
    <figcaption class="scrolling-svg__caption">
      {{ caption }}
    </figcaption>
  {% endif %}
</figure>