I currently have this cool marquee banner as the announcement bar for my store. However it has a couple of issues.
The first one is that on mobile it has a weird glitch where it will display properly on the initial load, but then after a couple of seconds or so it randomly increases the size of the text and renders incorrectly as you can see in the example below.
(Displaying correctly) ![]()
1 second later (displaying incorrectly)
I’ve tried looking at the code, but I don’t really know what I’m looking at here.
{%- if section.settings.text != blank -%}
{%- if section.settings.link != blank -%}
{%- endif -%}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{{ section.settings.text | escape }}
{%- if section.settings.link != blank -%}
{% render 'icon-arrow' %}
{%- endif -%}
{%- if section.settings.link != blank -%}
{%- endif -%}
{%- endif -%}
{% schema %}
{
"name": "Marquee Announcement",
"settings": [
{
"type": "text",
"id": "text",
"default": "Black Friday Sale | Save up to 75% off storewide",
"label": "Add text to display"
},
{
"type": "color",
"id": "colorBackground",
"label": "Background color",
"default": "#B2FCE4"
},
{
"type": "color",
"id": "colorText",
"label": "Text color",
"default": "#000"
},
{
"type": "url",
"id": "link",
"label": "Link"
}
]
}
{% endschema %}
Thank you in advance for any help.


