I’m looking to add a color gradient background that changes color seamlessly as you scroll. I’ve seen other gradient solutions that provide a static background gradient color solution. But I’m looking to have the color gradient change as you scroll to the bottom.
The issue I’ve been running into is getting it to be a seamless scroll on the homepage regardless of section?
Any tips would be awesome!
–
Someone suggested following this guide below, but I can’t figure out how to access the body section to test it.
Hi @wavy , the body section is your whole webpage container. All you need to do is add the code in the link you shared at the end of your CSS file (Themes → Edit code → Assets → theme.css) and you should be able to see the effect.
I did that, but it still seems to just loop the gradient in every section. Is there a workaround to have it as the main background image and have it change as i scroll on homepage?
@wavy , sorry I cannot understand what exactly is your requirement. Can you share your website link and also an example website of what you want to achieve?
Hi @wavy , I took a look at your website. You need to add percentage to the linear gradient to add the effect you want. So something like this (you can adjust the percent to your liking) :
However, what’s currently happening is that the gradient is looping for each section. I want the homepage background to be one solid gradient instead of repeating every section.
@wavy , I understand your requirement and the code that I shared should have worked on your website. You can see the demo here: https://jsfiddle.net/f7cotx2n/
I can see an error in your theme.js file in the console. So that could be interfering with the code in some way. I think you added the CSS code in your theme.js file accidentally, perhaps. I would suggest you to remove that line and refresh your website again to see if it works.
Hello G33Kgirl, I tried following your advice down to the letter but it does not reflect on my website for some reason. Could you please help me? the website is www.cafeolui.com