Webflow Marquee

A lightweight, customizable GSAP-powered marquee library. Add smooth, responsive scrolling text or any element with simple attribute-based setup—perfect for news, stock tickers, and more. Enhance your site with dynamic animations in minutes!

Step #1

Copy the Webflow Marquee <script> and paste into the <body> of your page
<!-- [ShaikSaif PowerUps] Webflow Marquee -->
<script defer src="https://cdn.jsdelivr.net/npm/@imshaiksaif/webflow-marquee@3/dist/marqueeHandler.js"></script>
Copy Script

Step #2

Implement in Webflow by Applying attributes to elements on the page
Required for minimum setup

Below is a list of required attributes:

Marquee Element
I want this
DIV
to convert to Marquee Component
Add this attribute
Name
ss-marquee
Value
true
Description

Ensure this is the element containing all the children you want to loop and duplicate infinitely.

Extra Controls [Optional]

Below is a list of Attributes that can help you customize your Marquee.

Option
Speed
I want to adjust the speed of the marquee loop
Add this attribute
Name
ss-marquee-speed
Value
300
Description

Ensure this is the element containing all the children you want to loop and duplicate infinitely.

Default Value: 50

Option
Direction
I want to change the Direction of Marquee
Add this attribute
Name
ss-marquee-direction
Value
right
Description

You can change the direction of the marquee.

Default Value: left
Accepted Values: left | right | up | down

Option
Pause On Hover
I want to pause the marquee on user mouse hover
Add this attribute
Name
ss-marquee-pause-hover
Value
true
Description

To pause the marquee when the user hovers over it:

Default Value: false

Option
Visible On Screen
I want to only plan Marquee when component is visible on screen
Add this attribute
Name
ss-marquee-pause-visible
Value
true
Description

Play the marquee only when the component is visible on the screen.

Default Value: false

Working examples

Example 1
Default Marquee
Just simple marquee
logo
logo
logo
logo
logo
logo
logo
logo image
Example 2
Updated speed to 200ms
Updated speed to 200ms
logo
logo
logo
logo
logo
logo
logo
logo image
Example 3
Pause on mouse hover
Pause on mouse hover
logo
logo
logo
logo
logo
logo
logo
logo image
Example 4
Direction set to right
Direction set to right
logo
logo
logo
logo
logo
logo
logo
logo image
Example 5
Only Play Marquee when visible in Screen
Only Play Marquee when visible in Screen
logo
logo
logo
logo
logo
logo
logo
logo image

API

1// Get marquee instance
2const element = document.querySelector('[ss-marquee]'); 
3
4const marquee = element.ssMarquee;
5
6// Control methods
7marquee.pause(); // Pause animation
8marquee.resume(); // Resume animation
9marquee.start(); // Start animation
10marquee.stop(); // Stop and reset
11marquee.destroy(); // Remove marquee functionality
12
13// Update configuration
14marquee.update({ animation: 
15    	{ speed: 100, direction: 'right', gap: 30, duplicates: 4 }, 
16        behavior: { pauseOnHover: true, pauseWhenNotVisible: true } 
17       });

FAQ's

1. Is SSMarquee free to use?

Yes, SSMarquee is completely free to use! It’s an open-source library, and you can use it in both personal and commercial projects without any cost. However, we welcome donations or contributions to help maintain and improve the library.

2. Can I use SSMarquee on CMS platforms like WordPress, Wix, or Squarespace?

Yes, you can! SSMarquee is a pure JavaScript solution, which means it can be integrated into most modern CMS platforms that allow custom HTML, CSS, or JavaScript. For WordPress, Wix, or Squarespace, you can embed the required script in the header/footer section and use the HTML attributes in your content.

3. Can I customize the scrolling speed, direction, and behavior?

Absolutely! SSMarquee provides multiple configuration options like ss-marquee-speed, ss-marquee-direction, ss-marquee-duplicates, and others that allow you to fully customize the behavior of the marquee. You can adjust the speed, direction (left/right), pause behavior, and even set the number of duplicate items that scroll in the loop.

4. Does SSMarquee support pausing the animation on hover?

Yes, SSMarquee includes a ss-marquee-pause-hover attribute that pauses the marquee animation when the user hovers over the marquee content. You can easily enable this feature by setting the attribute to true.

5. Can I control the marquee animation programmatically?

Yes, SSMarquee exposes a simple JavaScript API to control the marquee behavior. You can pause, resume, start, stop, or even reset the animation. The API also allows you to dynamically update the configuration, such as changing the speed or direction of the marquee.

6. Is SSMarquee compatible with mobile devices and modern browsers?

Yes, SSMarquee is designed to work seamlessly on all modern browsers, including Chrome, Firefox, Safari, and Edge. It’s also fully responsive and works well on mobile devices, ensuring smooth scrolling on both desktop and mobile interfaces.

7. Can I use SSMarquee on CMS collections or dynamic content?

Yes, you can! SSMarquee can be used on CMS collections or dynamic content. You just need to make sure the dynamic content is rendered inside the ss-marquee container, and SSMarquee will handle the scrolling animation automatically.

8. Is there any required structure for the marquee to work correctly?

Yes, here's the required structure:

  1. Marquee Container: Add the ss-marquee attribute to the container.
  2. Content Wrapper: Inside the container, place a wrapper (e.g., a div) for the scrolling items.
  3. Individual Items: Place the items (e.g., text, images) inside the wrapper.
  4. CSS: Set the content wrapper to display: flex and adjust item gaps.

Let's Take Care of your Webflow Site.

We're a tight-knit team of webflow experts that eat, sleep, breathe Webflow. You bring your ideas or designs and we will make it happen, no matter the complexity.

Speak with Sales