How to create a Marquee

Julius vd Westhuizen
Julius vd Westhuizen
Published on
January 3, 2023
Estimated read time
 minute read
Julius vd Westhuizen
Published on
January 3, 2023
Estimated read time
 minute read

Today we will create an infinite vertical text component, sometimes called a ‘marquee.' Although we can display any content we want, a marquee is commonly used to display information, bullet points, or even client testimonials. As opposed to static text, infinite scrolling text adds another dynamic to your Webflow website. It is the perfect thing to use when wanting to emphasize a specific piece of content or even just to add some life to your static website.

How to create a Marquee in Webflow

To follow this tutorial, you must have a Webflow plan that allows you to add embedded code.

This Webflow tutorial is divided into three main parts:

  • Creating the vertical text component
  • Adding the embedded code
  • Creating an interaction for an infinite looping effect.

Alright, let’s get started!

Creating the infinite scroll component or 'Marquee' in Webflow.

First, we will create the actual component that contains the infinite text. Let’s go through this step by step. I will assume that you are starting from a blank page in Webflow.

  1. Create a section; give this section a height of 100vh. Place an empty div block inside it. Give this div block the class name ‘marquee-wrapper.' (My section will not contain any other content. However, I assume that yours will be filled with other content; it is irrelevant to the functioning of the marquee).

  • Give the ‘marquee-wrapper' div block a position of absolute with right: 0.
  • Set the overflow to hidden.
  • Give it a width of 55px (You can give it any width, for this case, 55px is a good width).
  • Give it a height of 100%.
  • Set the display to ‘flex’ and align items 'center’
  1. Add another Div block inside the ‘marquee-wrapper' Div block. Give this div the class 'marquee-inner’.
  1. Add two text blocks inside the ‘marquee-inner' div block. Give both text blocks the class name 'inner-text’
  • Set the display property for the ‘inner-text' div block to inline-block.
  • Set the font Breaking to No wrap (to find this option. click 'more type options’ in the Typography styling section.)

Add the embedded code to the page in Webflow.

Add an HTML embed to the section. Copy the following code and add it to the HTML embed.

We are giving the marquee-wrapper a writing mode of vertical-rl and a text orientation of sideways-right.

We are giving the marquee-wrapper a writing mode of vertical-rl and a text orientation of sideways-right.

This will make the text display in a vertical direction. Once you click save & close, the text should be displayed in a vertical direction, just how we want it.

Create Webflow interaction for infinite scrolling.

Great! you’ve reached the final milestone. Here we will add some life to the text, giving it the ‘infinite scrolling effect. We will do this with the powerful interactions Webflow allows us to create.

  1. Click on the 'marquee-wrapper'. In the interactions panel, click the plus icon next to the page trigger.
  1. Select ‘start an animation’ when the page starts loading.
  • Name this animation 'Marquee loop'.
  1. Select the 'marquee-inner' Div block. And click the plus icon. Select the move option, and type 0% for the Y axis. Set the duration to 0s.
  1. Add another move transformation to the 'marquee inner' Div block; this time, set the Y axis to -50%. Set the duration to 30 seconds. (You can change the duration. The shorter the duration is, the faster the text will move, and vice versa.)
  1. Add another move transformation to the 'marquee-inner' Div block. Set the y-axis to 0% and set the duration to 0s. This movement snaps the text back into the original position, so the duration must be set to 0.
  1. Finally, save the interaction, and check the 'loop' option, so that the interaction is running continuously.

And there we go! We hope you’ve learned some cool new things whilst following this tutorial. Keep following our blog page to learn new ways to customize your Webflow website.

Ready to get started?

We specialise in profit generating websites that tell your story, increase your conversions and educate your audience. Reach out to the team today to discuss your project with us.

Contact us

25 Ways your website can make more money 🤑

Get ready to boost your earnings with our handy cheat book! Inside, you'll discover 25 sneaky ways to increase your website's revenue. Tried and true methods only, enter your details below:

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.