I would like to create a background to one of my HTML pages like the one shown in the picture, and when a user hovers over one of the triangular sections, the opacity of that specific section would change. What is the best way to do that?
Best way to create interactive non-rectangular HTML elements
154 views Asked by Mr.AwfulAtProgramming At
2
There are 2 answers
0

I would use Adobe Illustrator to draw/create the section/s you want as a background. Then save it in a SVG file.
Open SVG file with a browser and copy all the tag in your HTML file. And then use JS, Jquery, libraries to do what you want.
Example?
This is my home www.triiio.it
In SVG, you could make use of the polygon elements to create your triangles within the square and each polygon is hover-able separately.