File: slider.css

Recommend this page to a friend!
  Classes of Francesco Mapelli   JavaScript Compact Slider   slider.css   Download  
File: slider.css
Role: Auxiliary data
Content type: text/plain
Description: css file
Class: JavaScript Compact Slider
Slide page elements horizontally using buttons
Author: By
Last change: bug Fix
Date: 9 years ago
Size: 3,688 bytes
 

Contents

Class file image Download
#myslider img{ display:block; width:100%; } #myslider ul{margin:0;padding:0;} /* -----------FUNZIONANTE (slide-fade) ----------- */ .style1 ul>li{transition:transform 0.6s ease-in-out, opacity 0.6s ease-in-out;} .style1 ul>li.active{opacity:1;z-index:2;} .style1 ul>li.active.left{opacity:0;transform:translate3d(-100%,0,0);} .style1 ul>li.active.right{opacity:0;transform:translate3d(100%,0,0);} .style1 ul>li.next,.style1 ul>li.prev{position:absolute !important;top:0;display:block !important;opacity:1;z-index:1;} /* -----------FUNZIONANTE (fade) ----------- */ .style2 ul>li{transition:opacity 0.6s ease-in-out;} .style2 ul>li.active{opacity:1;z-index:2;} .style2 ul>li.active.left,.style2 ul>li.active.right{opacity:0;} .style2 ul>li.next,.style2 ul>li.prev{position:absolute !important;top:0;display:block !important;opacity:1;z-index:1;} /* -----------FUNZIONANTE (fade) ----------- */ @keyframes slidenext{0%{transform:translate3d(100%,0,0);}100%{transform:translate3d(0,0,0);}}@-webkit-keyframes slidenext{0%{-webkit-transform:translate3d(100%,0,0);}100%{-webkit-transform:translate3d(0,0,0);}}@-moz-keyframes slidenext{0%{-moz-transform:translate3d(100%,0,0);}100%{-moz-transform:translate3d(0,0,0);}}@-ms-keyframes slidenext{0%{-ms-transform:translate3d(100%,0,0);}100%{-ms-transform:translate3d(0,0,0);}}@-o-keyframes slidenext{0%{-o-transform:translate3d(100%,0,0);}100%{-o-transform:translate3d(0,0,0);}} @keyframes slideprev{0%{transform:translate3d(-100%,0,0);}100%{transform:translate3d(0,0,0);}}@-webkit-keyframes slideprev{0%{-webkit-transform:translate3d(-100%,0,0);}100%{-webkit-transform:translate3d(0,0,0);}}@-moz-keyframes slideprev{0%{-moz-transform:translate3d(-100%,0,0);}100%{-moz-transform:translate3d(0,0,0);}}@-ms-keyframes slideprev{0%{-ms-transform:translate3d(-100%,0,0);}100%{-ms-transform:translate3d(0,0,0);}}@-o-keyframes slideprev{0%{-o-transform:translate3d(-100%,0,0);}100%{-o-transform:translate3d(0,0,0);}} .style3 ul>li{transition:transform 0.5s ease-in-out;} .style3 ul>li.active.left{transform:translate3d(-100%,0,0);} .style3 ul>li.active.right{transform:translate3d(100%,0,0);} .style3 ul>li.next{position:absolute !important;top:0;display:block !important;-webkit-animation:slidenext 0.5s ease-in-out 1;} .style3 ul>li.prev{position:absolute !important;top:0;display:block !important;-webkit-animation:slideprev 0.5s ease-in-out 1;} #myslider{overflow:hidden;position:relative;width:100%;} #myslider ul>li{width:100%;position:relative;display:none;} #myslider ul>li.active{display:block;} #myslider .pointerBox{ position: absolute; bottom: 20px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; overflow:hidden; } #myslider .pointerBox a{ background-color: rgba(0,0,0,0.3); border: 0; display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; } #myslider .pointerBox a.active{ background-color: #fff; border: 1px solid #685d9f; margin: 0; width: 12px; height: 12px; } #myslider .nextBtn{ position:absolute; top:0; right: 0; color: rgba(0,0,0,0.3); width: 15%; height:50%; padding-top:10%; font-size: 50px; text-align: center; text-decoration: none; z-index:3; } #myslider .prevBtn{ position:absolute; top:0; left: 0; color: rgba(0,0,0,0.3); width: 15%; height:100%; padding-top:10%; font-size: 50px; text-align: center; text-decoration: none; z-index:3; }