How to create a announcement bar like bellow

How to create a announcement bar like bellow

JGBowie
Tourist
33 0 20

Hi all wondering how to make the announcement bar have the side scrollers and transition like bellow example https://www.wilsonandfrenchy.com.au/?srsltid=AfmBOoom6uECDNHPIjBtyD7cY9nUHr5jZlfaVF6h2HeJSWrcJzPIchf...

Replies 3 (3)

Dotsquares
Shopify Partner
369 22 49

Hi @JGBowie For scrolling announcement bar-

 

1) Add This HTML 

 

<div class="announcement-bar-marquee">
<div class="announcement-track">
<span>Free Shipping on Orders Over $100 &nbsp;&nbsp;&nbsp;</span>
<span>New Autumn Collection Now Live &nbsp;&nbsp;&nbsp;</span>
<span>Buy Now, Pay Later with Afterpay &nbsp;&nbsp;&nbsp;</span>
<!-- Repeat messages or loop same ones -->
</div>
</div>

 

2) Add This CSS in Announcement bar CSS

 

.announcement-bar-marquee {
overflow: hidden;
background-color: #f4f4f4; /* or your brand color */
white-space: nowrap;
height: 40px;
display: flex;
align-items: center;
position: relative;
}

.announcement-track {
display: inline-block;
padding-left: 100%;
animation: scroll-left 20s linear infinite;
}

.announcement-track span {
display: inline-block;
font-size: 14px;
color: #000;
}

@keyframes scroll-left {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}

 

Let me know if this works.

Dotsquares Ltd


Problem Solved? ✔ Accept and Like solution to help future merchants.


Shopify Partner Directory | Trustpilot | Portfolio
JGBowie
Tourist
33 0 20

Where do I put the first section?

namphan
Shopify Partner
2568 334 379

Hi @JGBowie,

What theme are you using? please send me the theme name, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com