Jump to content

How can I get a gradient image overlay?

Recommended Posts

Posted

I was looking at another site made on squarespace recently (amandafarias.nyc), and was wondering how to achieve horizontal gradient overlays over an image and add text on top. I do think that these changes (on that site specifically) were made using CSS because the gradient modified as the page width changed. I was wondering if anyone knew how to code for something like this? thank you.

Posted
3 hours ago, sqsnewbie said:

I was looking at another site made on squarespace recently (amandafarias.nyc), and was wondering how to achieve horizontal gradient overlays over an image and add text on top. I do think that these changes (on that site specifically) were made using CSS because the gradient modified as the page width changed. I was wondering if anyone knew how to code for something like this? thank you.

Hi. Do you have an example/or mockup?

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!)

  • 4 months later...
  • 1 year later...
Posted
On 9/5/2023 at 12:21 PM, izza.weihaas said:

Hi @tuanphan is there a way to accomplish this? I would like to add a gradient over the section background image from left to right (black 60% opacty to transparent) on the 3rd section title "22,400 people served each month in our community." 

https://fbcenla.squarespace.com/
password: design

 

Thanks for your help!

I see you figured it out with this CSS code?

section[data-section-id="64f69374633e4f108dedc366"] .section-background-overlay, section[data-section-id="64f693d4ae069407cbd67437"] .section-background-overlay {
    opacity: .75 !important;
    background: linear-gradient(to right,#000,transparent);
}

 

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!)

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.