Created
April 28, 2021 00:16
-
-
Save mikeoberdick/43017c38ad63914a839d43cd29ee1b5e to your computer and use it in GitHub Desktop.
Use the following when adding iteration based content in shopify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for block in section.blocks %} | |
{% assign count = 1 %} | |
data-aos="{% if count == 1 or count == 3 %}fade-up-right{% else %}}fade-up-left{% endif %}" | |
{% assign count = count | plus: 1 %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment