Yes, you can overlay header text on top of a Lottie animation in Webflow by using proper element structure and position styling.
1. Add the Lottie Animation
- Drag a Lottie element into the desired section (e.g., Header section).
- Upload or link your Lottie JSON file.
- Set the Lottie animation’s width and height to fill the section (use 100% width and height or absolute positioning if needed).
2. Use a Wrapper with Relative Positioning
- Wrap both the Lottie and text elements inside a div block.
- Set this wrapper’s position to Relative so child elements can be absolutely positioned within it.
3. Overlay the Text
- Add a text block or heading element inside the same wrapper.
- Set the text element’s position to Absolute (e.g., top-left, center, etc.).
- Customize alignment using top/right/bottom/left values and set z-index higher than the Lottie (e.g., z-index: 10).
4. Style the Text and Animation Responsively
- Use flexbox or grid on the wrapper for responsive alignment if desired.
- Make sure the text scales appropriately on different screen sizes using VW units, or adjust font sizes with Webflow’s responsiveness settings.
Summary
Yes, you can overlay header text on a Lottie animation by placing both elements in a relatively positioned wrapper and using absolute positioning for the text. Adjust z-index and layout settings to ensure correct layering and responsiveness.