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!

Edited by Isha
Link to comment

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.