How can I create a curved/wave shape boundary for a section/div in Webflow, similar to the shape seen in the provided Figma design?
Published on
September 22, 2023
To create a curved or wave shape boundary for a section or div in Webflow, you can use the built-in shape dividers or create a custom shape using CSS. Here's how you can do it:
Using built-in shape dividers
- Open your Webflow project and navigate to the page where you want to add the curved/wave shape boundary.
- Add a section or div block to the page by dragging and dropping it from the Elements panel into the desired position.
- Select the section or div block and go to the Style panel on the right-hand side.
- Scroll down to the "Shapes" section and click on "Add" next to "Top" or "Bottom" shape divider.
- Choose the desired shape from the available options, such as waves, curves, or zigzags.
- Adjust the size, color, and position of the shape divider to achieve the desired effect.
- Repeat the process for the other side if needed.
Creating a custom shape using CSS
- Open your Webflow project and navigate to the page where you want to add the curved/wave shape boundary.
- Add a section or div block to the page by dragging and dropping it from the Elements panel into the desired position.
- Give the section or div block a unique class name by selecting it and going to the Settings panel on the right-hand side.
- Click on the "Custom Code" tab in the Style panel.
- In the "Head Code" section, enter the following CSS code:
<style>.custom-shape { position: relative; overflow: hidden;}.custom-shape:before { content: ""; position: absolute; top: -100px; left: 0; width: 100%; height: 200px; background-color: #yourcolor; border-radius: 50% 50% 0 0;}</style>
Replace custom-shape
with your chosen class name and #yourcolor
with the desired background color for the shape.
- Click on the "Save Changes" button to apply the CSS code.
- Adjust the height and other properties in the CSS code (e.g., top, left, border-radius) to achieve the desired shape and position of the curve.
- Preview your site in the Webflow designer or publish it to see the curved/wave shape boundary applied to the section or div block.
By following these steps, you should be able to create a curved or wave shape boundary for a section or div in Webflow. Experiment with different shapes, sizes, and colors to achieve the desired effect for your design.
Additional Questions:
- How do I create a zigzag shape boundary in Webflow?
- Can I animate the shape dividers in Webflow?
- How can I create a curved shape boundary with different curves on each side in Webflow?