Pure CSS jagged banners

This is created by using the CSS background property alone. No special tricks, no pseudo-elements, no images. jQuery is used in this demo only for switching the background color of the banner.

You can read the tutorial on Medium .

Style 1: General

You can also change background colours at ease:

Style 2: iFixit replica

The iFixit replica contains two vertical grey bars on either side. Pick a colour: