0

How to create a triangle animate in html (css)

Step by step

15th Jun 2025, 6:34 PM
Nitya Gunjan
Nitya Gunjan - avatar
2 Answers
+ 1
it's not clear. and show your attempt. use relevant tags. hint: look after in this discussion for similar posts/questions, and there you can find a code....
15th Jun 2025, 8:02 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
Nitya Gunjan , you can use SVG to create triangles in HTML, and many other geometric shapes as well. You can use the <polygon> element to define the three coordinate points of the triangle within an <svg> container. This will not only help you create a triangle, but also control its direction and size. You may refer to the following code. I'm afraid it is not commented properly, but you can see the code by clicking on a triangle. Feel free to ask me for further clarification. https://sololearn.com/compiler-playground/W8d61oudSdNT/?ref=app
16th Jun 2025, 12:37 AM
Ushasi Bhattacharya