Jump to content

Target specific section-background

Recommended Posts

I am trying to apply a color change animation in the background, which works perfectly if I use .section-background {} and insert my animation code. However, I want to apply it only to a specific section, and not every section in the page. I've tried using the id as follows:

#collection-5e01c1ef7645b07c060d1849.section-background {}

which doesn't seem to work. Any ideas on how to use the id and the section-background property? If I just use the id

#collection-5e01c1ef7645b07c060d1849

then it animates over all the content in the block.

Thank you!

Link to comment
  • Replies 1
  • Views 664
  • Created
  • Last Reply

Each section has [data-section-id="...abcxyz"]

[data-section-id="tuanphan"] .section-background {your code}

Find id with https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.