You define the color via a custom attribute named data-color.
Go to advanced tab of each section > attributes and define the background color as follows:
data-color | r, g, b
r stands for red
g for green
b for blue.
Use any color picker to read the RGB values
For example, if you want a transition to black, you write:
data-color | 0,0,0
To yellow:
data-color | 255,255,0
and so on…
Important: You need at least 2 ‘markers’ on the page to make this work, otherwise there can’t be a transition between 2 colors.
Also remember that sections and columns are always on top of the body element, so when you include a section with a background color, gradient,background image or video, the body background color will not be shown.
Add an HTML element at the bottom of the page (or use the new custom code feature on the dashboard in Elementor > Custom Code) and copy – paste the script below.
All credits to Bojan Gvozderac for the script, I found it on codepen, I just made it work in Elementor.