March 5, 2019 12:35 am GMT
Original Link: https://pineco.de/quick-tip-css-triangles/
CSS Triangles, Multiple Ways
I like Adam Laki's Quick Tip: CSS Triangles because it covers that ubiquitous fact about front-end techniques: there are always many ways to do the same thing. In this case, drawing a triangle can be done:
- with
border
and a collapsed element - with
clip-path: polygon()
- with
transform: rotate()
andoverflow: hidden
- with glyphs like
I'd say that the way I've typically done triangles the most over the years is with the border trick, but I think my favorite … Read article
The post CSS Triangles, Multiple Ways appeared first on CSS-Tricks.
Original Link: https://pineco.de/quick-tip-css-triangles/
Share this article:
Tweet
View Full Article