Collection of hand-picked free HTML and CSS triangle code examples

Welcome to our collection of CSS examples! In this carefully curated compilation, we have gathered a wide array of CSS code snippets that demonstrate the power and versatility of Cascading Style Sheets.

Pyramid Triangle: Pure CSS Animation

Author:
Shivani | July 16, 2022
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

CSS Tri Spinner

Author:
ycw | July 2, 2022
Made with:
HTML (Pug) / CSS (Less)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

CSS Only Triangle with Rounded Corners

Author:
Temani Afif | February 18, 2022
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Moving on a Penrose Triangle

Author:
Amit Sheen | July 23, 2021
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Slicing Triangles

Author:
Ana Tudor | November 28, 2020
Made with:
HTML (Pug) / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

CSS 3D Triangle Spin

Author:
Carlos | October 18, 2020
Made with:
HTML (Pug) / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Bordered Image Triangle

Bordered Image Triangle

Author:
Jhey | May 2, 2020
Made with:
HTML (Pug) / CSS (Stylus)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Triangle Grid with nth-child

Triangle Grid with nth-child

Author:
Stephen Lee | December 4, 2019
Made with:
HTML (Haml) / CSS (SCSS)

About a code

Creating a grid of triangles with CSS Grid and custom properties.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Triangle

Author:
Fernando Cohen | November 17, 2019
Made with:
HTML / CSS (Less)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Triangle

Author:
Ranger | July 7, 2019
Made with:
HTML / CSS (SCSS)

About a code

Animated triangle in pure CSS.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Rotating Rounded Triangles Animation

Author:
Mark Miscavage | February 15, 2019
Made with:
HTML (Pug) / CSS (SCSS)

About a code

Rotating rounded triangles animation. Rounded triangles black and white. Pug. SCSS. Animation degrees.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Landscape in a Triangle

Landscape in a Triangle

Author:
Paulina Hetman | February 14, 2019
Made with:
HTML / CSS (SCSS)

About a code

Only-triangles landscape in a triangle. Animated through the seasons.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Pure CSS Prism Grid Wave

Author:
Ana Tudor | February 13, 2019
Made with:
HTML (Pug) / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
CSS Penrose Triangle

CSS Penrose Triangle

Author:
startinmerc | February 12, 2019
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Pure CSS Animated Triangle Grid

Author:
Ana Tudor | January 24, 2019
Made with:
HTML (Pug) / CSS (SCSS)

About a code

ure CSS animated triangle grid pop with grid, variables, clip-path.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Triangle Cutout

Triangle Cutout

Author:
Tanner Hodges | October 29, 2018
Made with:
HTML / CSS (SCSS)

About a code

Triangle cutout with pseudo-elements.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
CSS Triangles

CSS Triangles

Author:
nana | October 7, 2018
Made with:
HTML / CSS (SCSS)

About a code

CSS triangle / equilateral triangle: arrow with empty space, arrow without empty space, an equilateral triangle.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
△

Author:
Yusuke Nakaya | October 4, 2018
Made with:
HTML (Pug) / CSS (SCSS)

About a code

Only CSS triangle.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-
Pink Triangles

Pink Triangles

Author:
Nikita Dubko | June 26, 2018
Made with:
HTML (Pug) / CSS (SCSS)

About a code

CSS only pink animated triangles.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-
Triangle

Triangle

Author:
parph | April 24, 2018
Made with:
HTML (Haml) / CSS (Sass)

About a code

3D triangle.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-
Double Triangle

Double Triangle

Author:
Mary | April 5, 2018
Made with:
HTML / CSS (SCSS)

About a code

Text cards with double triangles.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Penrose Triangle

Penrose Triangle

Author:
Mari Johannessen | September 15, 2017
Made with:
HTML / CSS (SCSS)

About a code

The Penrose Triangle, also known as the impossible tribar, created by the Swedish artist Oscar Reutersvärd. Created using HTML and SCSS only.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-
Triangles

Triangles

Author:
magnificode | June 17, 2017
Made with:
HTML / CSS (SCSS)

About a code

A little CSS representation of the Compilerbau "North Wall" album cover, with a nifty little bonus hover state.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Dependencies:
-

Triangle

Author:
Dronca Raul | November 29, 2016
Made with:
HTML / CSS

About a code

SVG triangle with GIF background.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Penrose Triangle x3

Penrose Triangle x3

Author:
Loray O'Connell | October 24, 2016
Made with:
HTML / CSS / JavaScript

About a code

Pure CSS penrose triangle x3.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨