Jump to content

Gradient between sections

Go to solution Solved by creedon,

Recommended Posts

Site URL: http://alcyball.squarespace.com

Hi!

I'm wanting to create a smooth transition between the first and second sections of my website using a gradient fade. The idea would be that the hero image has a color overlay, then that color transitions from 0 opacity at the top of the image to 100 opacity at the bottom of the image, and the color overlay is the same color as the next section on the website so that the transition looks seamless.

Any help would be so much appreciated!

Link to comment

Your site is private please set up a site-wide password.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment
12 hours ago, BrandonH said:

Site URL: http://alcyball.squarespace.com

Hi!

I'm wanting to create a smooth transition between the first and second sections of my website using a gradient fade. The idea would be that the hero image has a color overlay, then that color transitions from 0 opacity at the top of the image to 100 opacity at the bottom of the image, and the color overlay is the same color as the next section on the website so that the transition looks seamless.

Any help would be so much appreciated!

Your website is in private mode. Please set a password and share it.

Link to comment
  • Solution

Add the following to Design > Custom CSS.

.homepage #page .page-section:first-child .section-background-overlay {

  background : linear-gradient( to bottom, transparent, var( --siteBackgroundColor ) );
  opacity : 1 !important;
  
  }

95262875_ScreenShot2022-09-14at1_03_26PM.png.eba15a5165fb0e3b763210b35fe2b18b.png

This is for v7.1 and specific to the posters need.

Let us know how it goes.

Edited by creedon
version 2

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

@creedon you are the man! Thanks so much!

It looks amazing on the screenshot you provided, but unfortunately, when I plug that CSS code in, the opacity of the gray overlay never quite reaches 100%. Can you see what I'm talking about in my screenshot? Any ideas what would be keeping it from getting to 100% opacity?

Screen Shot 2022-09-15 at 3.37.51 PM.png

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.