Single Element Icons
How do I make an single element icons?
Claudio Gomboli had some pretty rad icons over on Dribbble, so I decided to make them out of CSS, and just one element!. What is a single element icons? How do you make a single element icons? This script and codes were developed by Albert Filice on 26 August 2022, Friday.
Single Element Icons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Single Element Icons</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Anonymous+Pro);
*, *:before, *:after { box-sizing: border-box;
}
body { background-color: #89d9cc; overflow: hidden; }
a { color: #f008f0; text-decoration: none; }
a:hover { color: #f008f0; }
h1 { margin: 20px; text-align: center; font-family: 'Anonymous Pro'; font-size: 3em; text-shadow: 2px 2px 1px rgba(255,255,255,.8);
}
p { margin: 0px auto; width: 240px;
}
.container { width: 284px; margin: 50px auto 0px auto;
}
.icon { position: relative; display: inline-block; width: 32px; height: 32px; border: 1px solid black; background-color: #fff;
}
.icon:hover { border: 1px solid rgba(0,0,0,.3);
}
.reload:before,
.reload:after { content: ''; position: absolute;
}
.reload:before { top: 9px; left: 9px; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,.8); border-top-color: transparent; border-radius: 100%; transform: rotate(35deg);
}
.reload:after { top: 6px; left: 14px; width: 4px; height: 4px; border: 4px solid transparent; border-left: 4px solid rgba(0,0,0,.8);
}
.add:before,
.add:after { content: ''; position: absolute; background-color: rgba(0,0,0,.8);
}
.add:before { top: 14px; left: 9px; width: 12px; height: 2px;
}
.add:after { top: 9px; left: 14px; width: 2px; height: 12px;
}
.subtract:before { content: ''; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; background-color: rgba(0,0,0,.8);
}
.logo:before,
.logo:after { content: ''; position: absolute;
}
.logo:before { top: 5px; left: 13px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black;
}
.logo:after { top: 14px; left: 7px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black; border-right-color: transparent; box-shadow: -1px -2px #fff;
}
.eye:before,
.eye:after { content: ''; position: absolute;
}
.eye:before { top: 6px; left: 6px; width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.8); border-radius: 80% 0%; box-shadow: 0px 0px 1px #000 inset; transform: rotate(45deg);
}
.eye:after { top: 10px; left: 10px; width: 10px; height: 10px; border-radius: 100%; background-color: rgba(0,0,0,.8);
}
.mail:before,
.mail:after { content: ''; position: absolute; width: 18px; height: 11px;
}
.mail:before { top: 10px; left: 6px; background-color: rgba(0,0,0,.8);
}
.mail:after { top: -2px; left:7px; width: 20px; height: 14px; transform: rotate(-45deg); box-shadow: -1px 1px #fff;
}
.close:before,
.close:after { content: ''; position: absolute; top: 15px; left: 5px; width: 20px; height: 1px; background-color: rgba(0,0,0,.8); transform: rotate(45deg);
}
.close:after { transform: rotate(-45deg);
}
.up:before { content: ''; position: absolute; top: 5px; left: 9px; height: 7px; width: 6px; border: 6px solid transparent; border-bottom: 7px solid rgba(0,0,0,.8);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <div class="reload icon"></div> <div class="add icon"></div> <div class="subtract icon"></div> <div class="logo icon"></div> <div class="eye icon"></div> <div class="mail icon"></div> <div class="close icon"></div> <div class="up icon"></div>
</div>
<h1>Single Element Icons</h1>
<p> Designed by: <a href="http://dribbble.com/shots/691652-Personal-website?list=tags&tag=css3" target="_blank">Claudio Gomboli</a> <br> Coded by: <a href="http://twitter.com/monstasaurous" target="_blank">Albert Filice</a>
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Single Element Icons - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Anonymous+Pro);
*, *:before, *:after { box-sizing: border-box;
}
body { background-color: #89d9cc; overflow: hidden; }
a { color: #f008f0; text-decoration: none; }
a:hover { color: #f008f0; }
h1 { margin: 20px; text-align: center; font-family: 'Anonymous Pro'; font-size: 3em; text-shadow: 2px 2px 1px rgba(255,255,255,.8);
}
p { margin: 0px auto; width: 240px;
}
.container { width: 284px; margin: 50px auto 0px auto;
}
.icon { position: relative; display: inline-block; width: 32px; height: 32px; border: 1px solid black; background-color: #fff;
}
.icon:hover { border: 1px solid rgba(0,0,0,.3);
}
.reload:before,
.reload:after { content: ''; position: absolute;
}
.reload:before { top: 9px; left: 9px; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,.8); border-top-color: transparent; border-radius: 100%; transform: rotate(35deg);
}
.reload:after { top: 6px; left: 14px; width: 4px; height: 4px; border: 4px solid transparent; border-left: 4px solid rgba(0,0,0,.8);
}
.add:before,
.add:after { content: ''; position: absolute; background-color: rgba(0,0,0,.8);
}
.add:before { top: 14px; left: 9px; width: 12px; height: 2px;
}
.add:after { top: 9px; left: 14px; width: 2px; height: 12px;
}
.subtract:before { content: ''; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; background-color: rgba(0,0,0,.8);
}
.logo:before,
.logo:after { content: ''; position: absolute;
}
.logo:before { top: 5px; left: 13px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black;
}
.logo:after { top: 14px; left: 7px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black; border-right-color: transparent; box-shadow: -1px -2px #fff;
}
.eye:before,
.eye:after { content: ''; position: absolute;
}
.eye:before { top: 6px; left: 6px; width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.8); border-radius: 80% 0%; box-shadow: 0px 0px 1px #000 inset; transform: rotate(45deg);
}
.eye:after { top: 10px; left: 10px; width: 10px; height: 10px; border-radius: 100%; background-color: rgba(0,0,0,.8);
}
.mail:before,
.mail:after { content: ''; position: absolute; width: 18px; height: 11px;
}
.mail:before { top: 10px; left: 6px; background-color: rgba(0,0,0,.8);
}
.mail:after { top: -2px; left:7px; width: 20px; height: 14px; transform: rotate(-45deg); box-shadow: -1px 1px #fff;
}
.close:before,
.close:after { content: ''; position: absolute; top: 15px; left: 5px; width: 20px; height: 1px; background-color: rgba(0,0,0,.8); transform: rotate(45deg);
}
.close:after { transform: rotate(-45deg);
}
.up:before { content: ''; position: absolute; top: 5px; left: 9px; height: 7px; width: 6px; border: 6px solid transparent; border-bottom: 7px solid rgba(0,0,0,.8);
}
Developer | Albert Filice |
Username | monstersaurous |
Uploaded | August 26, 2022 |
Rating | 3.5 |
Size | 3,423 Kb |
Views | 34,408 |
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 |
Single Element Solar Eclipse Animation | 2,296 Kb |
CSS Spaceship | 2,789 Kb |
Single Element Loader | 2,600 Kb |
Single Element Wine Glass | 2,930 Kb |
Single Element Dribbble Logo | 3,236 Kb |
CSS Owl | 2,845 Kb |
Game of 15 | 2,692 Kb |
Message Bubble | 2,024 Kb |
CNIT 133 - Homework 4 - Part 6 | 2,218 Kb |
Single Element Google Inbox Sun | 2,303 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 |
Fixed with using Calc | Tomleo | 2,542 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
404 Error Page | WebSonick | 3,203 Kb |
My three.js practice | Esambino | 3,203 Kb |
Multiple jCarousel | Pafnuty | 2,461 Kb |
RAQuote | Naderk007 | 4,412 Kb |
JavaScript Animation | Rcmeisty | 4,581 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Canvas snow | Win7killer | 2,572 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!