{# check if scrollmagic is needed #}
{% set scrollmagic = false %}
{% for wrapper in Page.blocks %}
{% if wrapper.templatekey == 'framework_scrollmagic' or wrapper.templatekey == 'framework_content_parallax' %}
{% set scrollmagic = true %}
{% endif %}
{% endfor %}
{# Scrollmagic 2.0.8 #}
{% if scrollmagic %}
<script defer src="/mazdashop/js/gsap.min.js"></script>
<script defer src="/mazdashop/js/animation.gsap.min.js"></script>
{# For testing #}
{#<script defer src="/mazdashop/js/debug.addIndicators.min.js"></script>#}
{% endif %}
{# Site #}
<script defer src="/mazdashop/js/website.js"></script>
{# {% if webshop_enabled is defined and webshop_enabled %}
{<script defer src="/mazdashop/js/simplebar.js"></script>
{% endif %} #}