Radio button template
by Mr_Vasu
HTML
<div class="st-container">
<input type="radio" name="radio-set" checked="checked" id="st-control-1"/>
<a href="#st-panel-1">Home</a>
<input type="radio" name="radio-set" id="st-control-2"/>
<a href="#st-panel-2">About</a>
<input type="radio" name="radio-set" id="st-control-3"/>
<a href="#st-panel-3">Products</a>
<input type="radio" name="radio-set" id="st-control-4"/>
<a href="#st-panel-4">Services</a>
<input type="radio" name="radio-set" id="st-control-5"/>
<a href="#st-panel-5">contact us</a>
<div class="st-scroll">
<section class="st-panel" id="st-panel-1">
<div class="st-deco" data-icon="v"></div>
<h2>Mr_vasu</h2>
<p>This is i am learning</p>
</section>
<section class="st-panel st-color" id="st-panel-2">
<div class="st-deco" data-icon="A"></div>
<h2>Mr_VK rim</h2>
<p>This is i am learning</p>
</section>
<section class="st-panel st-color" id="st-panel-3">
<div class="st-deco" data-icon="S"></div>
<h2>Mr_Green rim</h2>
<p>This is i am learning</p>
</section>
<section class="st-panel st-color" id="st-panel-4">
<div class="st-deco" data-icon="u"></div>
<h2>Mr_Ragu rim</h2>
<p>This is i am learning</p>
</section>
<section class="st-panel st-color" id="st-panel-5">
<div class="st-deco" data-icon="H"></div>
<h2>Mr_daya</h2>
<p>This is i am learning</p>
</section>
</div><!-- // st-scroll -->
</div><!-- // st-container -->
CSS
body {
overflow: hidden;
}
.st-container {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
font-family: 'Josefin Slab', 'Myriad Pro', Arial, sans-serif;
}
.st-container > input,
.st-container > a {
position: fixed;
bottom: 0px;
width: 20%;
cursor: pointer;
font-size: 16px;
height: 34px;
line-height: 34px;
}
.st-container > input {
opacity: 0;
z-index: 1000;
}
.st-container > a {
z-index: 10;
font-weight: 700;
background: #e23a6e;
color: #fff;
text-align: center;
text-shadow: 1px 1px 1px rgba(151,24,64,0.2);
}
.st-container:before {
content: '';
position: fixed;
width: 100%;
height: 34px;
background: #e23a6e;
z-index: 9;
bottom: 0;
}
#st-control-1, #st-control-1 + a {
left: 0;
}
#st-control-2, #st-control-2 + a {
left: 20%;
}
#st-control-3, #st-control-3 + a {
left: 40%;
}
#st-control-4, #st-control-4 + a {
left: 60%;
}
#st-control-5, #st-control-5 + a {
left: 80%;
}
.st-container > input:checked + a,
.st-container > input:checked:hover + a{
background: #821134;
}
.st-container > input:checked + a:after,
.st-container > input:checked:hover + a:after{
bottom: 100%;
border: solid transparent;
content: '';
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-bottom-color: #821134;
border-width: 20px;
left: 50%;
margin-left: -20px;
}
.st-container > input:hover + a{
background: #AD244F;
}
.st-container > input:hover + a:after {
border-bottom-color: #AD244F;
}
.st-scroll,
.st-panel {
position: relative;
width: 100%;
height: 100%;
}
.st-scroll {
top: 0;
left: 0;
transition: all 0.6s ease-in-out;
/* Let's enforce some hardware acceleration */
-webkit-transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
}
.st-panel{
background: #fff;
overflow: hidden;
}
#st-control-1:checked ~ .st-scroll {
transform: translateY(0%);
}
#st-control-2:checked ~ .st-scroll {
transform: translateY(-100%);
}
#st-control-3:checked ~ .st-scroll {
transform:...