Diferencia entre revisiones de «Usuario:JanKlaaseen/MediaWiki:slider.css Ver historial

(Página creada con «→‎Reset: *{margin:0;padding:0;} →‎Slider: #slider{ width:600px; height:250px; position:relative; overflow:hidden; } @keyframes load{ from{left:-100%;} to…»)
 
Sin resumen de edición
 
Línea 1: Línea 1:
/* Reset */
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
*{margin:0;padding:0;}


/* Slider */
*{
#slider{
   box-sizing:border-box;
   width:600px;
  height:250px;
  position:relative;
  overflow:hidden;
}
}
@keyframes load{
html, body{
   from{left:-100%;}
   height:100%;
   to{left:0;}
   font: normal 1em/1.5 "Open Sans";
  background-color:#ddd;
  background-size:cover;
}
}
.slides{
a{
   width:400%;
   color:#ccc;
  height:100%;
  position:relative;
  -webkit-animation:slide 30s infinite;
  -moz-animation:slide 30s infinite;
  animation:slide 30s infinite;
}
}
.slider{
.container{
   width:25%;
   width:500px;
   height:100%;
   min-height:315px;
   float:left;
   margin:0 auto;
   position:relative;
   position:relative;
   z-index:1;
   padding-bottom:30px;
   overflow:hidden;
   overflow:hidden;
}
}
.slide img{
h1{
   width:100%;
   text-align:center;
   height:100%;
   text-shadow:0 1px white;
  color:#02303F;
}
}
.slide img{
h2{
   width:100%;
   color:#736861;
   height:100%;
  margin:15px 0 5px;
   text-shadow:0 1px rgba(255,255,255,0.5);
}
}
.image{
h6{
   width:100%;
   color:#928566;  
   height:100%;
   margin:0;
}
}
.image img{
input[type="radio"] {
  width:100%;
position: absolute;
  height:100%;
width: 1px; /* Setting this to 0 make it invisible for VoiceOver */
height: 1px; /* Setting this to 0 make it invisible for VoiceOver */
padding: 0;
margin: -1px;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
}
 
label{
/* Legend */
   display:block;
.legend{
   width:32%;
   border:500px solid transparent;
   border: 4px solid white;
   border-left:600px solid rgba(52, 73, 94, .7);
   border-bottom:0;
   position:absolute;
   position:absolute;
   bottom:0;
   bottom:5px;
  cursor: pointer;
  transition: border-color 0.3s linear;
}
}


/* Contents */
label.second{
.content{
   left:34%;
   width:100%;
}
  height:100%;
label.third{
  position:absolute;
   left:68%;
   overflow:hidden;
}
}
.content-txt{
 
   width:400px;
blockquote{
   height:150px;
  margin:0;
   float:left;
  padding:30px;
   width:500px;
   background-color: #DB532B;
   color:white;
  box-shadow: 0 5px 2px rgba(0,0,0,0.1);
   position:relative;
   position:relative;
   top:50px;
   transition: background-color 0.6s linear;
  -webkit-animation:content-s 7.5s infinite;
  -moz-animation:content-s 7.5s infinite;
  animation:content-s 7.5s infinite;
}
}
.content-txt h1{
 
   font-family:Intro;
blockquote:after {  
   font-size:24px;
   content: " ";  
   color:#fff;
   height: 0;  
   text-align:left;
   width: 0;  
   margin-left:30px;
   position: absolute;  
   padding-bottom:10px;
   top: 100%;  
}
   border: solid transparent;  
.content-txt h2{
  border-top-color: #DA532B;
  font-family:Quicksand;
   border-left-color:#DA532B;
   font-weight:normal;
   border-width: 10px;  
   font-size:14px;
   left: 10%;  
   font-style:italic;
}
  color:#fff;
#second:checked ~ .two blockquote {
  text-align:left;
   background-color:purple;
   margin-left:30px;
}
}
 
.two blockquote:after{
/* Switch */
   border: solid transparent;  
.switch{
   border-top-color: purple;
   width:120px;
   border-left-color:purple;
   height:10px;
   border-width: 10px;
   position:absolute;
   bottom:50px;
  z-index:99;
  left:30px;
}
}
.switch > ul{
#third:checked ~ .three blockquote{
   list-style:none;
   background-color:#54885F;
}
}
.switch > ul > li{
.three blockquote:after{
   width:10px;
   border: solid transparent;  
  height:10px;
   border-top-color: #54885F;
   border-radius:50%;
   border-left-color: #54885F;
  background:#333;
   border-width: 10px;
   float:left;
  margin-right:5px;
   cursor:pointer;
}
}
.switch ul{
.quotes{
   overflow:hidden;
   position:absolute;
  color:rgba(255,255,255,0.5);
  font-size:5em;
}
}
.on{
.leftq{
   width:100%;
   top:-25px;
  height:100%;
   left:5px;
  border-radius:50%;
  background:#f39c12;
  position:relative;
  -webkit-animation:on 30s infinite;
  -moz-animation:on 30s infinite;
   animation:on 30s infinite;
}
}
 
.rightq{
/* Animation */
   bottom:-10px;
@-webkit-keyframes slide{
   right:5px;
   0%,100%{
    margin-left:0%;
  }
  21%{
    margin-left:0%;
   }
  25%{
    margin-left:-100%;
  }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
  }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}
}
@-moz-keyframes slide{
img{
   0%,100%{
   float:left;
    margin-left:0%;
   margin-right: 20px;
  }
  21%{
    margin-left:0%;
   }
  25%{
    margin-left:-100%;
  }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
  }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}
}
@keyframes slide{
.slide{
   0%,100%{
   position:absolute;
    margin-left:0%;
   left:-100%;
   }
   opacity:0;
  21%{
   transition: all 0.6s ease-in;
    margin-left:0%;
  }
  25%{
    margin-left:-100%;
   }
  46%{
    margin-left:-100%;
  }
  50%{
    margin-left:-200%;
   }
  71%{
    margin-left:-200%;
  }
  75%{
    margin-left:-300%;
  }
  96%{
    margin-left:-300%;
  }
}
}


@-webkit-keyframes content-s{
#first:checked ~ label.first {
   0%{left:-420px;}
   border-width:6px;
  10%{left:0px;}
   border-color:#DB532B;
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
  70%{left:0;}
  80%{left:-420px;}
   90%{left:-420px;}
  100%{left:-420px;}
}
}
@-moz-keyframes content-s{
#second:checked ~ label.second {
   0%{left:-420px;}
   border-width:6px; border-color:purple;
  10%{left:0px;}
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
  70%{left:0;}
  80%{left:-420px;}
  90%{left:-420px;}
  100%{left:-420px;}
}
}
@keyframes content-s{
#third:checked ~ label.third {
  0%{left:-420px;}
   border:6px solid #54885F;
  10%{left:20px;}
  15%{left:0px;}
  30%{left:0px;}
  40%{left:0px;}
  50%{left:0px;}
  60%{left:0px;}
   70%{left:0;}
  80%{left:-420px;}
  90%{left:-420px;}
  100%{left:-420px;}
}
}


@-webkit-keyframes on{
#first:checked ~ div.one {
   0%,100%{
   left:0;
    margin-left:0%;
   opacity:1;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
  }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
   }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}
}
 
#second:checked ~ div.two {
@-moz-keyframes on{
   left:0;
   0%,100%{
   opacity:1;
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
   }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
  }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}
}
 
#third:checked ~ div.three {
@keyframes on{
   left:0;
   0%,100%{
   opacity:1;
    margin-left:0%;
  }
  21%{
    margin-left:0%;
  }
  25%{
    margin-left:15px;
   }
  46%{
    margin-left:15px;
  }
  50%{
    margin-left:30px;
  }
  71%{
    margin-left:30px;
  }
  75%{
    margin-left:45px;
  }
  96%{
    margin-left:45px;
  }
}
}

Revisión actual - 10:56 14 jun 2020

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

*{
  box-sizing:border-box;
}
html, body{
  height:100%;
  font: normal 1em/1.5 "Open Sans";
  background-color:#ddd;
  background-size:cover;
}
a{
  color:#ccc;
}
.container{
  width:500px;
  min-height:315px;
  margin:0 auto;
  position:relative;
  padding-bottom:30px;
  overflow:hidden;
}
h1{
  text-align:center;
  text-shadow:0 1px white;
  color:#02303F;
}
h2{
  color:#736861; 
  margin:15px 0 5px;
  text-shadow:0 1px rgba(255,255,255,0.5);
}
h6{
  color:#928566; 
  margin:0;
}
input[type="radio"] {
position: absolute;
width: 1px; /* Setting this to 0 make it invisible for VoiceOver */
height: 1px; /* Setting this to 0 make it invisible for VoiceOver */
padding: 0;
margin: -1px;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
label{
  display:block;
  width:32%;
  border: 4px solid white;
  position:absolute;
  bottom:5px;
  cursor: pointer;
  transition: border-color 0.3s linear;
}

label.second{
  left:34%;
}
label.third{
  left:68%;
}

blockquote{
  margin:0;
  padding:30px;
  width:500px;
  background-color: #DB532B;
  color:white;
  box-shadow: 0 5px 2px rgba(0,0,0,0.1);
  position:relative;
  transition: background-color 0.6s linear;
}

blockquote:after { 
  content: " "; 
  height: 0; 
  width: 0; 
  position: absolute; 
  top: 100%; 
  border: solid transparent; 
  border-top-color: #DA532B;
  border-left-color:#DA532B;
  border-width: 10px; 
  left: 10%; 
} 
#second:checked ~ .two blockquote {
  background-color:purple;
}
.two blockquote:after{
  border: solid transparent; 
  border-top-color: purple;
  border-left-color:purple;
  border-width: 10px;
}
#third:checked ~ .three blockquote{
  background-color:#54885F;
}
.three blockquote:after{
  border: solid transparent; 
  border-top-color: #54885F;
  border-left-color: #54885F;
  border-width: 10px;
}
.quotes{
  position:absolute;
  color:rgba(255,255,255,0.5);
  font-size:5em;
}
.leftq{
  top:-25px;
  left:5px;
}
.rightq{
  bottom:-10px;
  right:5px;
}
img{
  float:left;
  margin-right: 20px;
}
.slide{
  position:absolute;
  left:-100%;
  opacity:0;
  transition: all 0.6s ease-in;
}

#first:checked ~ label.first {
  border-width:6px;
  border-color:#DB532B;
}
#second:checked ~ label.second {
  border-width:6px; border-color:purple;
}
#third:checked ~ label.third {
  border:6px solid #54885F;
}

#first:checked ~ div.one {
  left:0;
  opacity:1;
}
#second:checked ~ div.two {
  left:0;
  opacity:1;
}
#third:checked ~ div.three {
  left:0;
  opacity:1;
}