Aligning two diagonal gradients of separate elements
I have an HTML-header with
background-image
containing a linear-gradient
, that wants to be vertically followed by another gradient.
See the visual.
Now I wonder if it's mathematically possible to align both gradients diagonal divisions, so it scales equally when the viewport changes – my guess is that the unequal height is the "issue".
I've got full control over adding elements, embedding it in pseudo or extending the gradient rule which I all tried but failed.
Should this be possible, in theory?
currently seperate:
note: limegreen will be transparent
0 Replies