mikerocco Posted August 23, 2023 Share Posted August 23, 2023 I would like to add a gradient overlay between sections, from the first section which contains a video background, to the one below, so that it ramps from transparent on top to hex #1c1c1c (the gray background below). Any help is much appreciated! See screengrab mock for what I am thinking. Link to comment
Solution DPruitt Posted August 23, 2023 Solution Share Posted August 23, 2023 Hey Mike! Try this: #collection-id #sections .page-section:nth-child(1):after {content:''; width: 100%; display:block; position: absolute; bottom:0px; height: 70px; background: #1c1c1c; background: linear-gradient(0deg, #1c1c1c 28%, rgba(28, 28, 28, 0) 100%); } You can always toggle the height if it needs to be larger... You'll also need to toggle the #collection-id to get the code to work specifically on your homepage so that other pages are not affected... If you want it on all pages, simply remove #collection-id. tuanphan 1 Link to comment
mikerocco Posted August 24, 2023 Author Share Posted August 24, 2023 Hi @DPruitt, thank you for the speedy response. This worked perfectly! Really appreciate your help. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment