Skip to content

Curved Section with Photo Clip-Path

Full-width photo hero with a responsive curved bottom edge made with CSS clip-path ellipse, plus a three-column feature row below.

Also known as: curved hero section, curved section divider, hero with curved bottom edge, wave divider alternative, clip-path curve

Curved Section with Photo Clip-Path live demo

Open in new tab

Pure CSS code (HTML, CSS)

A photo hero section with a curved bottom edge made with CSS clip-path, followed by a row of three feature items. It needs no JavaScript and no SVG divider, so it is a light way to add a soft, organic transition between a full-width image and the content below, for travel, outdoor, hospitality or event pages.

How it works

The root section.cpc-section contains the .cpc-hero block and a ul.cpc-features list. Inside the hero, the img.cpc-photo is positioned absolutely and fills the box with object-fit: cover. A ::after pseudo-element lays the --cpc-overlay gradient over the photo, and the .cpc-copy block (eyebrow, title, text and .cpc-button) sits above it.

The curve comes from one line: clip-path: ellipse(var(--cpc-curve) 100% at 50% 0%) on .cpc-hero. The ellipse is anchored at the top center and is as tall as the hero, so its lowest point touches the bottom edge in the middle, while the sides are cut higher up. Because the ellipse is sized in percentages, the curve scales with the hero on every screen width. Extra bottom padding keeps the text clear of the cut-off corners. The features list uses one column on phones and three columns from 768px.

Customization

  • --cpc-curve on .cpc-section: the horizontal radius of the ellipse. Lower values such as 65% give a deeper arch, higher values such as 120% give a gentle curve. It is set to 85% on phones and 75% from 768px.
  • --cpc-hero-height: the minimum height of the photo area, clamp(420px, 70vw, 520px) by default.
  • --cpc-overlay: the gradient over the photo; make it darker for bright images so the white text keeps its contrast.
  • --cpc-accent and --cpc-accent-text: the button and eyebrow color and the button text color.
  • --cpc-bg: the background below the curve; it shows through where the photo is clipped.
  • object-position on .cpc-photo: moves the focal point of the photo inside the clipped area.
  • To curve the top edge instead, change the ellipse position to at 50% 100%.

Use cases

  • Travel pages: a full-width photo flows into the content below through a soft arch
  • Hospitality sites: an overlay gradient keeps text readable over the picture, with a button on top
  • Outdoor and event pages: a three-column feature row sits under the curve
  • Landing pages: a light alternative to SVG dividers that scales with the screen width
  • Design experiments: tune the curve depth with one custom property

Accessibility

The photo has a descriptive alt text and fixed width and height to avoid layout shift. It is not lazy-loaded because it is above the fold. The section is labelled by its heading through aria-labelledby, and the feature icons are aria-hidden. The button has a clear white focus outline, and its hover lift is disabled under prefers-reduced-motion.

Usage notes

The photo comes from Unsplash; replace it with your own image. clip-path also clips shadows and outlines that extend outside the hero, so keep focus rings inside it.

Curved Section with Photo Clip-Path at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Shapes & Dividers
License
Free for personal and commercial use

Questions about this template

Can I use the Curved Section with Photo Clip-Path code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Curved Section with Photo Clip-Path – Pure CSS shapes & dividers component screenshot
Curved Section with Photo Clip-Path · Pure CSS Shapes & Dividers

More Shapes & Dividers

Wave Section Dividers – Pure CSS shapes & dividers preview

Wave Section Dividers

Pure CSS and inline SVG section dividers with wave, layered wave, curve and tilt shapes that inherit the next section's color and stretch to any width.