When using a sticky navbar that obstructs the section titles, you can still link to specific sections on your Webflow homepage by utilizing Webflow's Interactions feature. Here's a step-by-step guide on how to achieve this:
1. First, make sure that each section on your homepage has an appropriate identifier. You can do this by selecting the section, going to the Settings tab in the right sidebar, and giving it a unique ID under the "Attributes" section. For example, you could use IDs like "section1", "section2", and so on.
2. Create a new link in your sticky navbar by adding a link element (e.g., a text element or a button) and positioning it within your navbar structure. You can style it accordingly to match your design.
3. Select the link element and go to the Interactions panel (in the right sidebar). Click on the "+" icon to create a new interaction.
4. Choose the trigger for your interaction. In this case, you'll want to select "Click" as the trigger since the user will be clicking on the link.
5. Next, choose the action for the interaction. Select "Scroll to" from the dropdown menu.
6. Configure the scroll to action by clicking on the gear icon next to the selected target. In the modal that appears, choose "Element" as the target type and enter the ID of the section you want to scroll to (e.g., "section1", "section2", etc.).
7. Customize the animation settings, such as easing and duration, to your preference. You can also add additional actions, such as changing the link's appearance to indicate the active section.
8. Hit "Save" to apply the interaction to the link element.
By following these steps, clicking on the link in the sticky navbar will trigger a smooth scroll to the intended section on your Webflow homepage, even if the section titles are obstructed by the navbar.
Remember to apply these steps to every link in your sticky navbar that needs to scroll to a particular section.