DEV Community

Alex Carpenter
Alex Carpenter

Posted on • Originally published at alexcarpenter.me

How to create skewed backgrounds with CSS

View the demo code https://codepen.io/alexcarpenter/pen/PoqWvKg

Top comments (1)

Collapse
 
supremebeing09 profile image
nils binder 🏳️‍🌈

Very cool video. I should start working more with ClipPath. Big praise especially for the documentation of the individual corners in the comments. This helps your colleagues a lot.
If you prefer a fixed angle in the diagonal, you can solve this with CSS-Transoform. I recently wrote a tutorial about this. I would be interested to hear what you have to say about it.