Diwali Sale is LIVE - special prices end in
⚡ Launch-ready Shopify themes — Instant licensed download · 300+ stores built with LayoutKart themes

Shopify Animated Sale Announcement Bar

Shopify Animated Sale Announcement Bar

Static sale banners blend into the background — shoppers have trained themselves to ignore them. An animated announcement bar with a shimmer sweep or glow pulse breaks through that banner blindness and pulls eyes to your offer. This snippet uses a pure CSS gradient animation: no JavaScript, no performance hit, no app. Paste it into a Custom Liquid section and your sale announcement literally shines. Five industry variations below, each with a live preview and copy-ready code.

1. Fashion Store – Flash Sale Shimmer

Flash sales need maximum drama. A black-to-gold shimmer sweep makes the bar impossible to ignore during high-urgency drops.

Preview

⚡ FLASH SALE — 50% OFF EVERYTHING

Sample text: ⚡ FLASH SALE — 50% OFF EVERYTHING

Liquid Code

{% comment %} LayoutKart snippet: shopify-animated-sale-announcement-bar v1 (Fashion Store) - paste into a Shopify Custom Liquid section {% endcomment %}
<style>
.a6v1bar{padding:12px 0;overflow:hidden;text-align:center;background:linear-gradient(110deg,#101010 30%,#d4af37 50%,#101010 70%);background-size:200% 100%;animation:a6v1sh 3s linear infinite;}
@keyframes a6v1sh{from{background-position:200% 0;}to{background-position:-200% 0;}}
.a6v1bar p{color:#ffffff;font-family:Arial, Helvetica, sans-serif;font-size:15px;font-weight:800;margin:0;letter-spacing:2px;}
</style>
<div class="a6v1bar">
  <p><strong>⚡ FLASH SALE — 50% OFF EVERYTHING</strong></p>
</div>

2. Beauty Store – Glow Sale Bar

Beauty is all about glow, so let the bar glow too. A soft white shimmer over blush pink feels radiant rather than aggressive.

Preview

Glow-up sale — 30% off bestsellers

Sample text: Glow-up sale — 30% off bestsellers

Liquid Code

{% comment %} LayoutKart snippet: shopify-animated-sale-announcement-bar v2 (Beauty Store) - paste into a Shopify Custom Liquid section {% endcomment %}
<style>
.a6v2bar{padding:12px 0;overflow:hidden;text-align:center;background:linear-gradient(110deg,#fbeef2 30%,#ffffff 50%,#fbeef2 70%);background-size:200% 100%;animation:a6v2sh 3s linear infinite;}
@keyframes a6v2sh{from{background-position:200% 0;}to{background-position:-200% 0;}}
.a6v2bar p{color:#a1234f;font-family:Georgia, 'Times New Roman', serif;font-size:15px;font-weight:700;margin:0;letter-spacing:2px;}
</style>
<div class="a6v2bar">
  <p><strong>Glow-up sale — 30% off bestsellers</strong></p>
</div>

3. Electronics Store – Cyber Sale Pulse

Cyber sales deserve a cyber look. The navy-to-purple energy sweep mirrors RGB gaming aesthetics your tech audience loves.

Preview

CYBER WEEK — SAVE UP TO 70%

Sample text: CYBER WEEK — SAVE UP TO 70%

Liquid Code

{% comment %} LayoutKart snippet: shopify-animated-sale-announcement-bar v3 (Electronics Store) - paste into a Shopify Custom Liquid section {% endcomment %}
<style>
.a6v3bar{padding:12px 0;overflow:hidden;text-align:center;background:linear-gradient(110deg,#071c33 30%,#7b2ff7 50%,#071c33 70%);background-size:200% 100%;animation:a6v3sh 3s linear infinite;}
@keyframes a6v3sh{from{background-position:200% 0;}to{background-position:-200% 0;}}
.a6v3bar p{color:#37e0ff;font-family:'Trebuchet MS', Verdana, sans-serif;font-size:15px;font-weight:800;margin:0;letter-spacing:2px;}
</style>
<div class="a6v3bar">
  <p><strong>CYBER WEEK — SAVE UP TO 70%</strong></p>
</div>

4. Kids Store – Party Sale Shimmer

Kids’ sales should feel like a party. Purple-to-pink shimmer with confetti energy gets both kids and parents excited.

Preview

🎉 MEGA TOY SALE — UP TO 40% OFF

Sample text: 🎉 MEGA TOY SALE — UP TO 40% OFF

Liquid Code

{% comment %} LayoutKart snippet: shopify-animated-sale-announcement-bar v4 (Kids Store) - paste into a Shopify Custom Liquid section {% endcomment %}
<style>
.a6v4bar{padding:12px 0;overflow:hidden;text-align:center;background:linear-gradient(110deg,#6d28d9 30%,#ffe45e 50%,#6d28d9 70%);background-size:200% 100%;animation:a6v4sh 3s linear infinite;}
@keyframes a6v4sh{from{background-position:200% 0;}to{background-position:-200% 0;}}
.a6v4bar p{color:#ffe45e;font-family:'Trebuchet MS', Verdana, sans-serif;font-size:15px;font-weight:800;margin:0;letter-spacing:2px;}
</style>
<div class="a6v4bar">
  <p><strong>🎉 MEGA TOY SALE — UP TO 40% OFF</strong></p>
</div>

5. Jewelry Store – Gilded Sale Bar

Even sales can feel luxurious. A slow champagne shimmer over deep charcoal whispers ‘exclusive’ instead of shouting ‘cheap’.

Preview

Private sale — 25% off fine jewelry

Sample text: Private sale — 25% off fine jewelry

Liquid Code

{% comment %} LayoutKart snippet: shopify-animated-sale-announcement-bar v5 (Jewelry Store) - paste into a Shopify Custom Liquid section {% endcomment %}
<style>
.a6v5bar{padding:13px 0;overflow:hidden;text-align:center;background:linear-gradient(110deg,#141422 30%,#fff3c4 50%,#141422 70%);background-size:200% 100%;animation:a6v5sh 3s linear infinite;}
@keyframes a6v5sh{from{background-position:200% 0;}to{background-position:-200% 0;}}
.a6v5bar p{color:#e9c767;font-family:Georgia, 'Times New Roman', serif;font-size:15px;font-weight:700;margin:0;letter-spacing:2px;}
</style>
<div class="a6v5bar">
  <p><strong>Private sale — 25% off fine jewelry</strong></p>
</div>

How to Add an Animated Sale Bar to Shopify

No theme-file editing needed. Every snippet below is built for Shopify’s Custom Liquid section — the safest way to add custom code without installing another app:

  1. In Shopify admin, go to Online Store → Themes.
  2. Click Customize on your live theme (works on Dawn and most free OS 2.0 themes).
  3. In the theme editor sidebar, click Add section → Custom Liquid.
  4. Delete the placeholder code in the Custom Liquid box and paste the snippet.
  5. Drag the new section to the very top of the page, then click Save. Done!

Because it lives in a section — not in your theme files — the code survives theme updates.

Customize the Animated Sale Bar

  • Shimmer speed: change 3s in the animation — slower feels luxurious, faster feels urgent.
  • Colors: the gradient uses your background color plus an accent highlight — pick a metallic or neon accent for pop.
  • Direction: the sweep runs left-to-right; it’s pure CSS so it costs nothing in performance.
  • Restraint: use animated bars only during real sales — permanent animation trains shoppers to ignore it again.

More Shopify Code Sections

Conclusion

Motion beats static every time — a shimmer animation can double the attention your sale message gets, and it costs zero JavaScript. Paste your chosen variation into a Custom Liquid section, reserve it for genuine sale periods, and watch click-through climb. Pair it with a countdown timer from the related tutorials for maximum urgency.

Want it done for you? LayoutKart’s readymade Shopify templates come with these effects built in — launch your store today without touching a line of code.

Scroll to Top