{%- comment -%} MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections {%- endcomment -%} {%- comment -%} Announcement bar: one static message, or several that rotate (fade or slide) with optional arrows. Each message has an optional icon or emoji, link and short "ends" note. Dismissible with a close button that is remembered per browser; change the campaign version to show it again. All messages share one grid cell, so the bar is as tall as its longest message from the first paint and nothing shifts when the script starts. Optional sticky at the top of the page. Depends on: nothing. {%- endcomment -%} {%- liquid assign s = section.settings assign count = section.blocks.size assign rotating = false if s.mode == 'rotating' and count > 1 assign rotating = true endif assign arrows = false if rotating and s.show_arrows assign arrows = true endif assign version = s.dismiss_version | default: '1' | handleize assign dismiss_key = 'lib-announce:' | append: section.id | append: ':' | append: version -%} {%- if s.sticky -%} {%- endif -%}