← All elements
<section class="dsh"><div class="tx"><b>Grow slowly</b><span>Fresh seedlings every week.</span><a href="#">Shop plants</a></div><div class="im"></div></section>About this layout
A hero banner split on a slant into a copy side and a colour side, using a single clip-path polygon.
How it works
The banner has a text column and an absolutely positioned art panel. A four-point clip-path polygon gives that panel its slanted edge. The leafy shapes are radial gradients, and hovering the banner scales the art slightly while the text stays still.
Ways to customise it
- Change the 34% polygon point for a steeper or gentler slant.
- Replace the gradients with a background photo.
- Change the headline, text and button.
Good to know
Check that the text column stays wide enough on small screens before the slant overlaps it. The button is a real link with a visible focus outline.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.