Jump to content

Marquee Scrolling Text Announcement Bar

Recommended Posts

1 hour ago, Triick said:

Site URL: https://www.milkglobal.net

Morning/Evening guys,

Has anyone managed to achieve a scrolling announcement bar that works on all devices.

I've tried quite a few open source codes but nothing achieves a smooth transition from right to left.

If anyone has any advice it would be hugely appreciated.

Thanks
Dan

Add this to Design->Custom CSS

.sqs-announcement-bar-text {
  	overflow: hidden;
}
#announcement-bar-text-inner-id {
  	display:block;
	position:relative;
	width:100vw;
	animation:scroll 10s linear infinite;
	padding:3px;
}
@keyframes scroll {
	0% {left:800px;}
	100% {left:-800px;}
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
2 hours ago, bangank36 said:

Add this to Design->Custom CSS


.sqs-announcement-bar-text {
  	overflow: hidden;
}
#announcement-bar-text-inner-id {
  	display:block;
	position:relative;
	width:100vw;
	animation:scroll 10s linear infinite;
	padding:3px;
}
@keyframes scroll {
	0% {left:800px;}
	100% {left:-800px;}
}

 

Is there a way to make it flawless, at the moment it finishes before the edge of the screen, Also can it start again before it reaches the left hand side?

 

Thanks

Link to comment
  • 1 year later...
On 12/20/2020 at 7:23 AM, bangank36 said:

Add this to Design->Custom CSS

.sqs-announcement-bar-text {
  	overflow: hidden;
}
#announcement-bar-text-inner-id {
  	display:block;
	position:relative;
	width:100vw;
	animation:scroll 10s linear infinite;
	padding:3px;
}
@keyframes scroll {
	0% {left:800px;}
	100% {left:-800px;}
}

 

I used this and it worked seamlessly, but how do we get the text to repeat to where we eliminate that awkward blank space and pause in the scrolling animation?

Link to comment
14 hours ago, BLSTUDIO said:

I used this and it worked seamlessly, but how do we get the text to repeat to where we eliminate that awkward blank space and pause in the scrolling animation?

Can you share your link?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Have you tried adding more text on announcement to make it longer than current state?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.