Funny Flow chart
by marakoss
HTML
<label class="switch" for="switch-id-1"></label><h1>
Are you religious?
</h1>
<div class="linear-graph">
<div class="linear-graph-item">
<div class="linear-graph-content">
Problem
</div></div>
<div class="linear-graph-item">
<div class="linear-graph-content">
Known stuff
</div></div>
<div class="linear-graph-item">
<div class="linear-graph-content">
Unknown stuff
</div></div>
<div class="linear-graph-item">
<input id="switch-id-1" class="switch-trigger" type="checkbox" />
<div class="linear-graph-content switch-state-on">
Quantum physics
</div>
<div class="linear-graph-content switch-state-off">
God
</div></div>
<div class="linear-graph-item">
<div class="linear-graph-content">
Result
</div></div>
</div>
CSS
.linear-graph {
font-family: sans-serif;
font-weight: 200;
font-size: 12px;
letter-spacing: 0.4px;
}
.linear-graph-item {
display: inline-block;
vertical-align: top;
min-width: 100px;
position: relative;
}
.linear-graph-item:after {
content: "";
width: 0;
display: inline-block;
padding-top: 100%;
}
.linear-graph-content{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
text-align: left;
background: #009;
color: #fff;
z-index: 1;
}
.switch{
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch:before {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
border-radius: 50%;
}
.switch:after {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
border-radius: 34px;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
.switch-trigger:checked ~ .switch-state-off{
background: red !important;
display: none;
}