uses clip-path: polygon()

see also the SVG & JS (no library) version