Hello,
I’m having difficulty coding a marquee announcement bar. The static announcement bar code is below. When I’ve tried to add the marquee, both the background and the text scroll left. If possible, I’d like to have only the text scroll left.
URL: https://siriusnaturalpetfoods.com
(static) announcement-bar.liquid:
{% if section.settings.announcement_visibility %}
{% if section.settings.home_page_only == false or template.name == ‘index’ %}
{{ section.settings.announcement_text }}
{% endif %}
{% endif %}
{% schema %}
{
"name": "Announcement Bar",
"settings": [
{
"type": "checkbox",
"id": "announcement_visibility",
"label": "Visibility (On / Off)",
"default": true
},
{
"type": "checkbox",
"id": "home_page_only",
"label": "Home page only",
"default": true
},
{
"type": "richtext",
"id": "announcement_text",
"label": "Text",
"default": "Default richtext content
" }, { "type": "range", "id": "announcement_text_size", "min": 12, "max": 24, "step": 1, "unit": "px", "label": "Font size", "default": 16 }, { "type": "color", "id": "announcement_text_color", "label": "Text color", "default": "#FFFFFF" }, { "type": "color", "id": "announcement_bg_color", "label": "Background color", "default": "#094886" }, { "type": "range", "id": "announcement_border_size", "min": 0, "max": 10, "step": 1, "unit": "px", "label": "Border size", "default": 4 }, { "type": "color", "id": "announcement_border_color", "label": "Border color", "default": "#094886" }, { "type": "range", "id": "announcement_padding", "min": 0, "max": 20, "step": 1, "unit": "px", "label": "Padding", "default": 5 }, { "type": "select", "id": "announcement_text_align", "label": "Text alignment", "options": [ { "value": "left", "label": "left"}, { "value": "center", "label": "center"}, { "value": "right", "label": "right"} ], "default": "center" } ] } {% endschema %}