CSS Triangles in Sass
How do I make an css triangles in sass?
What is a css triangles in sass? How do you make a css triangles in sass? This script and codes were developed by Dang Van Thanh on 13 September 2022, Tuesday.
CSS Triangles in Sass - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Triangles in Sass</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="arrow"> <figure class="arrow-top"></figure> <figure class="arrow-right"></figure> <figure class="arrow-bottom"></figure> <figure class="arrow-left"></figure> <figure class="arrow-top-left"></figure> <figure class="arrow-top-right"></figure> <figure class="arrow-bottom-left"></figure> <figure class="arrow-bottom-right"></figure>
</div>
</body>
</html>
CSS Triangles in Sass - Script Codes CSS Codes
/* Mixin arrow */
/* Demo */
body { background-color: #2c3e50; height: 100%;
}
.arrow { text-align: center;
}
figure { display: inline-block !important;
}
.arrow-top { display: block; height: 0; width: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 40px solid #1abc9c;
}
.arrow-right { display: block; height: 0; width: 0; border-top: 40px solid transparent; border-bottom: 40px solid transparent; border-left: 40px solid #2ecc71;
}
.arrow-bottom { display: block; height: 0; width: 0; border-top: 40px solid #3498db; border-right: 40px solid transparent; border-left: 40px solid transparent;
}
.arrow-left { display: block; height: 0; width: 0; border-top: 40px solid transparent; border-right: 40px solid #9b59b6; border-bottom: 40px solid transparent;
}
.arrow-top-right { display: block; height: 0; width: 0; border-top: 40px solid #95a5a6; border-right: 40px solid transparent;
}
.arrow-top-left { display: block; height: 0; width: 0; border-top: 40px solid #f1c40f; border-left: 40px solid transparent;
}
.arrow-bottom-right { display: block; height: 0; width: 0; border-bottom: 40px solid #e67e22; border-right: 40px solid transparent;
}
.arrow-bottom-left { display: block; height: 0; width: 0; border-bottom: 40px solid #e74c3c; border-left: 40px solid transparent;
}
![CSS Triangles in Sass - Script Codes](http://shots.codepen.io/dangvanthanh/pen/qKmfh-512.jpg)
Developer | Dang Van Thanh |
Username | dangvanthanh |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 2,295 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
HTML5 Geolocation and Leaflet | 2,244 Kb |
Scale in CSS3 Transform | 2,028 Kb |
Long Shadow Mixin in Sass | 3,113 Kb |
Skew in CSS3 Transform | 2,063 Kb |
Long Shadow CSS3 in Sass | 4,652 Kb |
Pure CSS Off Canvas Icon | 1,944 Kb |
Media Queries Sass Mixin | 1,973 Kb |
Navigation Responsive with Transition | 2,871 Kb |
Modal Bootstrap with ReactJS | 2,716 Kb |
CSS Slide Up and Slide Down | 2,419 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Scrolling Horizontal Isotope | Bramus | 2,017 Kb |
Tab panels | Accessibility | 0 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!