I’m trying to develop this hero section which has the following elements:
An image that serves as a background image but does not have a background style.
A black overlay on the image
Heading
Paragraph
The image covers the entire viewport and initially has a fixed position then becomes relative.
Even the heading initially has a fixed position and then becomes absolute once the paragraph “reaches” it.
What I see in the code of the current website there are four main elements:
Image
Overlay black
H1
Paragraph.
Both the image and the H1 initially have a fixed position.
Then, when the user scrolls and the paragraph “reach” the H1, the H1 goes from a fixed to an absolute position.
When both elements, the H1, and paragraph, go out of view the image changes from a fixed to a relative position.
I’ve tried implementing the class adder where I add and remove the position-absolute and position-relative classes with no luck.
This is my read-only: Webflow - mcarchitects
What you are saying is to just use position-sticky instead that position-fixed?
What I see in the code of the current website there are four main elements:
Image
Overlay black
H1
Paragraph.
Both the image and the H1 initially have a fixed position.
Then, when the user scrolls and the paragraph “reach” the H1, the H1 goes from a fixed to an absolute position.
When both elements, the H1, and paragraph, go out of view the image changes from a fixed to a relative position.
I’ve tried implementing the class adder where I add and remove the position-absolute and position-relative classes with no luck.
This is my read-only: Webflow - mcarchitects
What you are saying is to just use position-sticky instead that position-fixed?
[/quote]
What I see in the code of the current website there are four main elements:
Image
Overlay black
H1
Paragraph.
Both the image and the H1 initially have a fixed position.
Then, when the user scrolls and the paragraph “reach” the H1, the H1 goes from a fixed to an absolute position.
When both elements, the H1, and paragraph, go out of view the image changes from a fixed to a relative position.
I’ve tried implementing the class adder where I add and remove the position-absolute and position-relative classes with no luck.
This is my read-only: Webflow - mcarchitects
What you are saying is to just use position-sticky instead that position-fixed?