.st-container{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.st-container > input,
.st-container > a{
position:fixed;
bottom: 0;
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,.2);
}
.st-container:before{
content:"";
position: fixed;
width: 100%;
height: 34px;
background-color: #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-color: #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:after{
border-bottom-color: #AD244F;
}
.st-scroll,
.st-panel{
position:relative;
width: 100%;
height: 100%;
}
.st-scroll{
top: 0;
left: 0;
transition:all .6s ease-in-out;
}
.st-panel{
background-color: #fff;
overflow: hidden;
}
#st-control-1:checked ~ .st-scroll{ //scroll
transform:translateY(0%);
}
#st-control-2:checked ~ .st-scroll{ //scroll
transform: translateY(-100%);
}
#st-control-3:checked ~ .st-scroll{ //scroll
transform: translateY(-200%);
}
#st-control-4:checked ~ .st-scroll{ //scroll
transform: translateY(-300%);
}
#st-control-5:checked ~ .st-scroll{ //scroll
transform: translateY(-400%);
}
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment