Jump to content

[Share] Scrolling Text with Different Color

Recommended Posts

To create a scrolling text block with different color, you can follow these.

If CSS code doesn't work, you can send link to page where you use scrolling text, I will check again.

#1. Suppose we have scrolling text with 3 texts: Dream it, Do it, Think it. You want:

  • Dream it: red color
  • Do it: green color
  • Think it: white color

image.png.0749a0c669a501806db038a5c2687cc7.png

#2. First, use this tool to find Scrolling text block ID.

In my example, we have: #block-yui_3_17_2_1_1724123780363_13893

image.png.a1f35136c560052773bbeda7ec122b9e.png

#3. Use this code to Website Tools > Custom CSS

#block-yui_3_17_2_1_1724123780363_13893 {
  tspan.Marquee-svg-text:nth-child(3n+1) {
      color: red !important;
  }
  tspan.Marquee-svg-text:nth-child(3n+2) {
      color: green !important;
  }
  tspan.Marquee-svg-text:nth-child(3n+3) {
      color: #fff !important;
  }
}

image.png.fcef60399e7df4b4a4b1606978a0ff11.png

#4. Result

image.png.b2425386402c75471a0575e060846bf6.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 121
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.