<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<section>
<header>
<h1>Pure <strong>CSS</strong> Icons</h1>
<h2>just playing :P</h2>
</header>
<article>
<h3>Some burger <strong>mutations</strong></h3>
<div class="circle">
<span class="burger cross"><span class="middle"></span></span>
</div>
<div class="circle">
<span class="burger arrow left"><span class="middle"></span></span>
</div>
<div class="circle">
<span class="burger arrow"><span class="middle"></span></span>
</div>
<div class="circle">
<span class="burger dots"><span class="middle"></span></span>
</div>
</article>
<article>
<h3>Some <strong>css</strong> icons</h3>
<div class="circle active">
<span class="burger triangle"><span class="middle"></span></span>
</div>
<div class="circle active">
<span class="burger user"><span class="middle"></span></span>
</div>
<div class="circle active">
<span class="burger mail"><span class="middle"></span></span>
</div>
<div class="circle active">
<span class="burger tick"><span class="middle"></span></span>
</div>
<div class="circle active">
<span class="burger wifi"><span class="middle"></span></span>
</div>
<div class="circle active">
<span class="burger cloud"><span class="middle"></span></span>
</div>
</article>
</section>
</div>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}
html {
line-height: 1;
}
ol, ul {
list-style: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
vertical-align: middle;
}
q, blockquote {
quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
content: "";
content: none;
}
a img {
border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block;
}
body,
html {
height: 100%;
}
body {
text-align: center;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
font-size: 16px;
background: #d0d0d0;
color: #444444;
}
h1 {
font-size: 2.5em;
margin: 1em 0 0.5em;
}
h2 {
margin-bottom: 3em;
}
p {
margin-bottom: 1em;
}
strong {
font-weight: 700;
}
div {
position: relative;
}
input {
display: none;
}
article {
padding: 2em;
max-width: 470px;
text-align: center;
margin-bottom: 2em;
}
article h3 {
font-size: 1.5em;
margin-bottom: 1.5em;
padding-bottom: 1.5em;
border-bottom: 1px solid #424242;
}
.container {
height: 100%;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
align-items: center;
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
justify-content: flex-start;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-moz-box-pack: center;
}
.burger {
width: 4em;
height: 4em;
display: inline-block;
position: relative;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-moz-transition-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
-o-transition-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
-webkit-transition-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
transition-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
}
.burger .middle {
left: -0.25em;
top: 50%;
width: 4.5em;
height: 0.5em;
position: absolute;
margin-top: -0.25em;
display: inline-block;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
background: #57CAF4;
}
.burger:after, .burger:before {
content: "";
width: 4.5em;
height: 0.5em;
left: -0.25em;
position: absolute;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
background: #57CAF4;
-moz-transform-origin: 50% 50% 0;
-webkit-transform-origin: 50% 50% 0;
transform-origin: 50% 50% 0;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
}
.burger:after {
bottom: 0;
}
.burger:before {
top: 0;
}
.circle {
font-size: 0.5em;
width: 4em;
height: 4em;
line-height: 1em;
padding: 5em;
margin: 0 auto 0.6em;
display: inline-block;
position: relative;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
background-color: white;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
}
.circle:before {
content: "";
width: 100%;
height: 100%;
top: 0;
left: 0;
display: inline-block;
position: absolute;
z-index: 0;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.4);
}
.circle.active, .circle:hover {
cursor: pointer;
}
.circle.active:before, .circle:hover:before {
-moz-animation: pointer-ball 0.3s ease 1;
-webkit-animation: pointer-ball 0.3s ease 1;
animation: pointer-ball 0.3s ease 1;
-moz-animation-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
-webkit-animation-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
animation-timing-function: cubic-bezier(0.61, 0.04, 0.17, 1.32);
}
.circle.active .burger, .circle:hover .burger {
-moz-transform: rotateZ(360deg);
-ms-transform: rotateZ(360deg);
-webkit-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
.circle.active .burger.cross .middle, .circle.active .burger.cross:after, .circle.active .burger.cross:before, .circle:hover .burger.cross .middle, .circle:hover .burger.cross:after, .circle:hover .burger.cross:before {
background: #EC008C;
}
.circle.active .burger.cross .middle, .circle:hover .burger.cross .middle {
opacity: 0;
}
.circle.active .burger.cross:after, .circle:hover .burger.cross:after {
bottom: 1.75em;
-moz-transform: rotate(135deg);
-ms-transform: rotate(135deg);
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
.circle.active .burger.cross:before, .circle:hover .burger.cross:before {
top: 1.75em;
-moz-box-shadow: 0 0 0 white;
-webkit-box-shadow: 0 0 0 white;
box-shadow: 0 0 0 white;
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.circle.active .burger.arrow .middle, .circle.active .burger.arrow:after, .circle.active .burger.arrow:before, .circle:hover .burger.arrow .middle, .circle:hover .burger.arrow:after, .circle:hover .burger.arrow:before {
background: #0FEC00;
}
.circle.active .burger.arrow .middle, .circle:hover .burger.arrow .middle {
opacity: 1;
}
.circle.active .burger.arrow:after, .circle:hover .burger.arrow:after {
bottom: 0.6em;
width: 3em;
-moz-transform: translateX(1.7em) rotate(135deg);
-ms-transform: translateX(1.7em) rotate(135deg);
-webkit-transform: translateX(1.7em) rotate(135deg);
transform: translateX(1.7em) rotate(135deg);
}
.circle.active .burger.arrow:before, .circle:hover .burger.arrow:before {
top: 0.6em;
width: 3em;
-moz-transform: translateX(1.7em) rotate(-135deg);
-ms-transform: translateX(1.7em) rotate(-135deg);
-webkit-transform: translateX(1.7em) rotate(-135deg);
transform: translateX(1.7em) rotate(-135deg);
}
.circle.active .burger.arrow.left, .circle:hover .burger.arrow.left {
-moz-transform: rotateZ(-360deg);
-ms-transform: rotateZ(-360deg);
-webkit-transform: rotateZ(-360deg);
transform: rotateZ(-360deg);
}
.circle.active .burger.arrow.left:after, .circle:hover .burger.arrow.left:after {
-moz-transform: translateX(-0.2em) rotate(45deg);
-ms-transform: translateX(-0.2em) rotate(45deg);
-webkit-transform: translateX(-0.2em) rotate(45deg);
transform: translateX(-0.2em) rotate(45deg);
}
.circle.active .burger.arrow.left:before, .circle:hover .burger.arrow.left:before {
-moz-transform: translateX(-0.2em) rotate(-45deg);
-ms-transform: translateX(-0.2em) rotate(-45deg);
-webkit-transform: translateX(-0.2em) rotate(-45deg);
transform: translateX(-0.2em) rotate(-45deg);
}
.circle.active .burger.triangle .middle, .circle.active .burger.triangle:after, .circle.active .burger.triangle:before, .circle:hover .burger.triangle .middle, .circle:hover .burger.triangle:after, .circle:hover .burger.triangle:before {
background: #EC008C;
}
.circle.active .burger.triangle .middle, .circle:hover .burger.triangle .middle {
opacity: 1;
top: 95%;
}
.circle.active .burger.triangle:after, .circle:hover .burger.triangle:after {
bottom: 1.75em;
-moz-transform: translateX(1em) rotate(60deg);
-ms-transform: translateX(1em) rotate(60deg);
-webkit-transform: translateX(1em) rotate(60deg);
transform: translateX(1em) rotate(60deg);
}
.circle.active .burger.triangle:before, .circle:hover .burger.triangle:before {
top: 1.75em;
-moz-transform: translateX(-1em) rotate(-60deg);
-ms-transform: translateX(-1em) rotate(-60deg);
-webkit-transform: translateX(-1em) rotate(-60deg);
transform: translateX(-1em) rotate(-60deg);
}
.circle.active .burger.dots .middle, .circle.active .burger.dots:after, .circle.active .burger.dots:before, .circle:hover .burger.dots .middle, .circle:hover .burger.dots:after, .circle:hover .burger.dots:before {
width: 0.75em;
height: 0.75em;
margin-top: -0.5em;
background: #0FEC00;
}
.circle.active .burger.dots .middle, .circle:hover .burger.dots .middle {
opacity: 1;
left: 1.7em;
}
.circle.active .burger.dots:after, .circle:hover .burger.dots:after {
bottom: 1.7em;
-moz-transform: translateX(3.7em) rotate(0deg);
-ms-transform: translateX(3.7em) rotate(0deg);
-webkit-transform: translateX(3.7em) rotate(0deg);
transform: translateX(3.7em) rotate(0deg);
}
.circle.active .burger.dots:before, .circle:hover .burger.dots:before {
top: 2em;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.tick .middle, .circle.active .burger.tick:after, .circle.active .burger.tick:before, .circle:hover .burger.tick .middle, .circle:hover .burger.tick:after, .circle:hover .burger.tick:before {
background: #424242;
}
.circle.active .burger.tick .middle, .circle:hover .burger.tick .middle {
opacity: 0;
left: 1.7em;
}
.circle.active .burger.tick:after, .circle:hover .burger.tick:after {
left: 0;
bottom: 0;
width: 2em;
-moz-transform-origin: 100% 50% 0;
-webkit-transform-origin: 100% 50% 0;
transform-origin: 100% 50% 0;
-moz-transform: translateX(-0.4em) rotate(45deg);
-ms-transform: translateX(-0.4em) rotate(45deg);
-webkit-transform: translateX(-0.4em) rotate(45deg);
transform: translateX(-0.4em) rotate(45deg);
}
.circle.active .burger.tick:before, .circle:hover .burger.tick:before {
top: 94%;
width: 3.7em;
-moz-transform-origin: 0% 0% 0;
-webkit-transform-origin: 0% 0% 0;
transform-origin: 0% 0% 0;
-moz-transform: translateX(1.5em) rotate(-45deg);
-ms-transform: translateX(1.5em) rotate(-45deg);
-webkit-transform: translateX(1.5em) rotate(-45deg);
transform: translateX(1.5em) rotate(-45deg);
}
.circle.active .burger.wifi .middle, .circle.active .burger.wifi:after, .circle.active .burger.wifi:before, .circle:hover .burger.wifi .middle, .circle:hover .burger.wifi:after, .circle:hover .burger.wifi:before {
font-size: 1.2em;
left: -1.4em;
top: 0.5em;
width: 5em;
height: 5em;
border: 0.5em solid #424242;
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
background-color: transparent;
}
.circle.active .burger.wifi .middle, .circle:hover .burger.wifi .middle {
opacity: 1;
}
.circle.active .burger.wifi:after, .circle:hover .burger.wifi:after {
left: -0.35em;
top: 1.2em;
width: 3em;
height: 3em;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.wifi:before, .circle:hover .burger.wifi:before {
left: 0.65em;
top: 2.23em;
width: 1em;
height: 1em;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.user .middle, .circle.active .burger.user:after, .circle.active .burger.user:before, .circle:hover .burger.user .middle, .circle:hover .burger.user:after, .circle:hover .burger.user:before {
margin-top: -0.5em;
border: 0.5em #424242 solid;
background-color: white;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
-moz-transition: none;
-o-transition: none;
-webkit-transition: none;
transition: none;
}
.circle.active .burger.user .middle, .circle:hover .burger.user .middle {
opacity: 1;
top: -0.1em;
left: 0em;
width: 3em;
height: 3em;
margin: 0;
z-index: 1;
}
.circle.active .burger.user:after, .circle:hover .burger.user:after {
top: 2.9em;
left: -1em;
width: 5em;
height: 5em;
margin: 0;
z-index: 0;
border-left-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
background-color: transparent;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.user:before, .circle:hover .burger.user:before {
opacity: 0;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.mail .middle, .circle.active .burger.mail:after, .circle.active .burger.mail:before, .circle:hover .burger.mail .middle, .circle:hover .burger.mail:after, .circle:hover .burger.mail:before {
margin-top: -0.5em;
border: 0.5em #424242 solid;
background-color: white;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
-moz-transition: none;
-o-transition: none;
-webkit-transition: none;
transition: none;
}
.circle.active .burger.mail .middle, .circle:hover .burger.mail .middle {
text-align: center;
top: -2em;
right: -3em;
left: auto;
width: 3em;
height: 3em;
margin: 0;
z-index: 1;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
border-color: white;
background-color: #EC008C;
}
.circle.active .burger.mail .middle:before, .circle:hover .burger.mail .middle:before {
content: "5";
display: inline-block;
color: white;
line-height: 2em;
font-size: 1.5em;
}
.circle.active .burger.mail:after, .circle:hover .burger.mail:after {
top: 0em;
left: -0.5em;
width: 4em;
height: 3em;
margin: 0;
z-index: 0;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.mail:before, .circle:hover .burger.mail:before {
top: -1.5em;
left: 0.2em;
width: 2.7em;
height: 2.7em;
margin: 0;
z-index: 1;
border-left-color: transparent;
border-top-color: transparent;
background-color: transparent;
-moz-transform: translateX(0) rotate(45deg);
-ms-transform: translateX(0) rotate(45deg);
-webkit-transform: translateX(0) rotate(45deg);
transform: translateX(0) rotate(45deg);
}
.circle.active .burger.cloud .middle, .circle.active .burger.cloud:after, .circle.active .burger.cloud:before, .circle:hover .burger.cloud .middle, .circle:hover .burger.cloud:after, .circle:hover .burger.cloud:before {
margin-top: -0.5em;
border: 0.5em #424242 solid;
background-color: white;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
-moz-transition: none;
-o-transition: none;
-webkit-transition: none;
transition: none;
}
.circle.active .burger.cloud .middle, .circle:hover .burger.cloud .middle {
top: 0.6em;
right: -1em;
left: auto;
width: 2.5em;
height: 2.5em;
margin: 0;
z-index: 2;
border-left-color: transparent;
border-top-color: transparent;
background-color: transparent;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
-moz-transform: rotate(-89deg);
-ms-transform: rotate(-89deg);
-webkit-transform: rotate(-89deg);
transform: rotate(-89deg);
}
.circle.active .burger.cloud:after, .circle:hover .burger.cloud:after {
top: 1em;
left: -1em;
width: 5em;
height: 2em;
margin: 0;
z-index: 0;
border-right-color: transparent;
border-top-color: transparent;
-moz-border-radius: 2em;
-webkit-border-radius: 2em;
border-radius: 2em;
-moz-transform: translateX(0) rotate(0deg);
-ms-transform: translateX(0) rotate(0deg);
-webkit-transform: translateX(0) rotate(0deg);
transform: translateX(0) rotate(0deg);
}
.circle.active .burger.cloud:before, .circle:hover .burger.cloud:before {
top: -0.3em;
left: -0.7em;
width: 2.5em;
height: 2.5em;
margin: 0;
z-index: 1;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
border-left-color: transparent;
border-top-color: transparent;
background-color: transparent;
-moz-transform: translateX(0) rotate(205deg);
-ms-transform: translateX(0) rotate(205deg);
-webkit-transform: translateX(0) rotate(205deg);
transform: translateX(0) rotate(205deg);
}
@-webkit-keyframes pointer-ball {
0%, 100% {
-moz-transform: scale(1);
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
80% {
-moz-transform: scale(2);
-ms-transform: scale(2);
-webkit-transform: scale(2);
transform: scale(2);
}
100% {
opacity: 0;
}
}
@-moz-keyframes pointer-ball {
0%, 100% {
-moz-transform: scale(1);
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
80% {
-moz-transform: scale(2);
-ms-transform: scale(2);
-webkit-transform: scale(2);
transform: scale(2);
}
100% {
opacity: 0;
}
}
@keyframes pointer-ball {
0%, 100% {
-moz-transform: scale(1);
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}
80% {
-moz-transform: scale(2);
-ms-transform: scale(2);
-webkit-transform: scale(2);
transform: scale(2);
}
100% {
opacity: 0;
}
}