Files

18 lines
818 B
HTML

{% load l10n %}
{% if band %}
<div class="floating-artwork floating-artwork--{{ position }}" data-floating-artwork>
<div class="floating-artwork-grid">
{% for alignment, images in band.items %}
<div class="floating-artwork-column floating-artwork-column--{{ alignment }}">
{% for item in images %}
<img class="floating-artwork-image{% if item.lift %} can-float{% endif %}" src="{{ item.art.url }}"
alt="{{ item.alt }}" width="{{ item.width|unlocalize }}" loading="lazy" decoding="async"
style="--float-cycle:{{ item.cycle_seconds|unlocalize }}s;--float-lift:{{ item.lift|unlocalize }}px">
{% endfor %}
</div>
{% endfor %}
</div>
<button class="fan-button floating-artwork-control" type="button" data-float-control hidden>Pause artwork motion</button>
</div>
{% endif %}