Sassy Shape Machine Mixin
How do I make an sassy shape machine mixin?
A mixin for creating simple Sass shapes! Based on this CSS-Tricks post: http://css-tricks.com/examples/ShapesOfCSS/ and some additional research :) Enjoy!. What is a sassy shape machine mixin? How do you make a sassy shape machine mixin? This script and codes were developed by Una Kravets on 05 August 2022, Friday.
Sassy Shape Machine Mixin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sassy Shape Machine Mixin</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="hexagon"></div> <div class="square"></div> <div class="circle"></div> <div class="triangle"></div> <div class="right-triangle"></div> <div class="diamond"></div> <div class="pentagon"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Sassy Shape Machine Mixin - Script Codes CSS Codes
/* Sass Shape Machine Mixin
Simple, sassy shapes ;)
based on: http://css-tricks.com/examples/ShapesOfCSS/ */
body { background-color: #3d3d3d;
}
div { float: left; margin: 50px;
}
.square { width: 50px; height: 50px; background-color: #967bd3;
}
.circle { width: 50px; height: 50px; background-color: #c8815b; border-radius: 50%;
}
.triangle { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 75px solid #8cd6d8;
}
.right-triangle { width: 0; height: 0; border-bottom: 50px solid #bee6b6; border-right: 50px solid transparent;
}
.diamond { width: 0; height: 0; border: 50px solid transparent; border-bottom-color: #dd9bb9; position: relative; top: -50px;
}
.diamond:after { content: ''; position: absolute; left: -50px; top: 50px; width: 0; height: 0; border: 50px solid transparent; border-top-color: #dd9bb9;
}
.pentagon { position: relative; width: 50px; border-width: 46.2963px 16.66667px 0; border-style: solid; border-color: #c4b5e6 transparent;
}
.pentagon:before { content: ""; position: absolute; height: 0; width: 0; top: -77.27273px; left: -16.66667px; border-width: 0 41.66667px 32.40741px; border-style: solid; border-color: transparent transparent #c4b5e6;
}
.hexagon { width: 100px; height: 55px; background: #cb6363; position: relative;
}
.hexagon:before { content: ""; position: absolute; top: -25px; left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 25px solid #cb6363;
}
.hexagon:after { content: ""; position: absolute; bottom: -25px; left: 0; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 25px solid #cb6363;
}
Developer | Una Kravets |
Username | una |
Uploaded | August 05, 2022 |
Rating | 4 |
Size | 3,054 Kb |
Views | 38,456 |
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 |
Infrared Mixin | 2,677 Kb |
Selective Coloring with CSS | 2,732 Kb |
Jeff the Bug in Flight Mode | 4,967 Kb |
The Power of CSS Talk | 13,908 Kb |
CSS Custom Properties on Elements | 3,098 Kb |
Infrared Mixin SVG test | 3,018 Kb |
3D Effect Part 2 | 2,067 Kb |
Animated Menu | 2,801 Kb |
Vuenicorn | 4,752 Kb |
Shape-inside hack | 3,170 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 |
Pure CSS Tooltip | APinix | 2,815 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Vanilla modal window | Jasonhowmans | 3,554 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Monochrome Form | AlienPiglet | 3,096 Kb |
Countdown Timer | Massiebn | 3,001 Kb |
Simple, flat contact form | Zeaklous | 2,719 Kb |
SVG Playground | Roygwells | 1,834 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!