Create a triangle shape with 2 CSS properties
Creating a basic triangle shape is as simple as using two CSS properties
aspect-ratio
clip-path
(with a 3-point polygon)
That's it, and it works with any kind of elements including images.
Get the CSS code from: css-generators.com/triangle-shapes