Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <input type="radio" name="slider" id="slide-a-1" checked>
<input type="radio" name="slider" id="slide-a-2">
<input type="radio" name="slider" id="slide-a-3">
<input type="radio" name="slider" id="slide-a-4">
<input type="radio" name="slider" id="slide-a-5">
<input type="radio" name="slider" id="slide-b-1">
<input type="radio" name="slider" id="slide-b-2">
<input type="radio" name="slider" id="slide-b-3">
<input type="radio" name="slider" id="slide-b-4">
<input type="radio" name="slider" id="slide-b-5">
<div class="slider a1 aa1"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>	
<div class="slider a2 aa2"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>	
<div class="slider a3 aa3"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>	
<div class="slider a4 aa4"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a5 aa5"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a1 bb1"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a2 bb2"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a3 bb3"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a4 bb4"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<div class="slider a5 bb5"><ul><li></li><li></li><li></li><li></li><li></li></ul></div>
<nav><label for="slide-a-1"></label><label for="slide-a-2"></label><label for="slide-a-3"></label><label for="slide-a-4"></label><label for="slide-a-5"></label><label for="slide-b-1"></label><label for="slide-b-2"></label><label for="slide-b-3"></label><label for="slide-b-4"></label><label for="slide-b-5"></label></nav>

<div class="corner">
  <div class="corner-bg"></div>
  <div class="corner-curl"></div>
  <a class="corner-txt" href="https://vk.com/bhorc" target="_blank"></a>
</div>
              
            
!

CSS

              
                html {
  background-color: #eee;
}
.slider,
.slider > ul,
.slider > ul > li {
  position: absolute;
  width: 500px;
  height: 300px;
}
.slider {
  display: none;
  overflow: hidden;
  left: calc(50% - 250px);
  top: calc(50% - 150px);
  border: 8px solid #fff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  -ms-box-sizing: content-box;
  -o-box-sizing: content-box;
  box-sizing: content-box;
}
.slider > ul > li:nth-child(1) {
  background: url("https://picsum.photos/id/230/500/300");
}
.slider > ul > li:nth-child(2) {
  background: url("https://picsum.photos/id/250/500/300");
}
.slider > ul > li:nth-child(3) {
  background: url("https://picsum.photos/id/350/500/300");
}
.slider > ul > li:nth-child(4) {
  background: url("https://picsum.photos/id/450/500/300");
}
.slider > ul > li:nth-child(5) {
  background: url("https://picsum.photos/id/550/500/300");
}
.slider > ul > li {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
nav {
  position: absolute;
  width: 165px;
  height: 15px;
  left: calc(50% - 77.5px);
  top: calc(50% + 180px);
  overflow: hidden;
}
input {
  display: none;
}
label {
  cursor: pointer;
  position: absolute;
  z-index: 5;
  background: #ccc;
  display: block;
  width: 15px;
  height: 15px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  border-radius: 50%;
}
label:nth-child(1),
label:nth-child(6) {
  left: 15px;
}
label:nth-child(2),
label:nth-child(7) {
  left: 45px;
}
label:nth-child(3),
label:nth-child(8) {
  left: 75px;
}
label:nth-child(4),
label:nth-child(9) {
  left: 105px;
}
label:nth-child(5),
label:nth-child(10) {
  left: 135px;
}
.a1 > ul > li:nth-child(1),
.a2 > ul > li:nth-child(2),
.a3 > ul > li:nth-child(3),
.a4 > ul > li:nth-child(4),
.a5 > ul > li:nth-child(5) {
  -webkit-animation: opacity-0 10s ease infinite 2s;
  -moz-animation: opacity-0 10s ease infinite 2s;
  -ms-animation: opacity-0 10s ease infinite 2s;
  -o-animation: opacity-0 10s ease infinite 2s;
  animation: opacity-0 10s ease infinite 2s;
  z-index: 10;
}
.a1 > ul > li:nth-child(2),
.a2 > ul > li:nth-child(3),
.a3 > ul > li:nth-child(4),
.a4 > ul > li:nth-child(5),
.a5 > ul > li:nth-child(1) {
  -webkit-animation: opacity-0 10s ease infinite 4s;
  -moz-animation: opacity-0 10s ease infinite 4s;
  -ms-animation: opacity-0 10s ease infinite 4s;
  -o-animation: opacity-0 10s ease infinite 4s;
  animation: opacity-0 10s ease infinite 4s;
  z-index: 9;
}
.a1 > ul > li:nth-child(3),
.a2 > ul > li:nth-child(4),
.a3 > ul > li:nth-child(5),
.a4 > ul > li:nth-child(1),
.a5 > ul > li:nth-child(2) {
  -webkit-animation: opacity-0 10s ease infinite 6s;
  -moz-animation: opacity-0 10s ease infinite 6s;
  -ms-animation: opacity-0 10s ease infinite 6s;
  -o-animation: opacity-0 10s ease infinite 6s;
  animation: opacity-0 10s ease infinite 6s;
  z-index: 8;
}
.a1 > ul > li:nth-child(4),
.a2 > ul > li:nth-child(5),
.a3 > ul > li:nth-child(1),
.a4 > ul > li:nth-child(2),
.a5 > ul > li:nth-child(3) {
  -webkit-animation: opacity-0 10s ease infinite 8s;
  -moz-animation: opacity-0 10s ease infinite 8s;
  -ms-animation: opacity-0 10s ease infinite 8s;
  -o-animation: opacity-0 10s ease infinite 8s;
  animation: opacity-0 10s ease infinite 8s;
  z-index: 7;
}
.a1 > ul > li:nth-child(5),
.a2 > ul > li:nth-child(1),
.a3 > ul > li:nth-child(2),
.a4 > ul > li:nth-child(3),
.a5 > ul > li:nth-child(4) {
  -webkit-animation: opacity-0 10s ease infinite 10s;
  -moz-animation: opacity-0 10s ease infinite 10s;
  -ms-animation: opacity-0 10s ease infinite 10s;
  -o-animation: opacity-0 10s ease infinite 10s;
  animation: opacity-0 10s ease infinite 10s;
  z-index: 6;
}
#slide-a-1:checked ~ .aa1,
#slide-a-2:checked ~ .aa2,
#slide-a-3:checked ~ .aa3,
#slide-a-4:checked ~ .aa4,
#slide-a-5:checked ~ .aa5,
#slide-b-1:checked ~ .bb1,
#slide-b-2:checked ~ .bb2,
#slide-b-3:checked ~ .bb3,
#slide-b-4:checked ~ .bb4,
#slide-b-5:checked ~ .bb5 {
  display: block;
}
#slide-a-1:checked ~ nav label:nth-child(6),
#slide-a-1:checked ~ nav label:nth-child(7),
#slide-a-1:checked ~ nav label:nth-child(8),
#slide-a-1:checked ~ nav label:nth-child(9),
#slide-a-1:checked ~ nav label:nth-child(10),
#slide-a-2:checked ~ nav label:nth-child(6),
#slide-a-2:checked ~ nav label:nth-child(7),
#slide-a-2:checked ~ nav label:nth-child(8),
#slide-a-2:checked ~ nav label:nth-child(9),
#slide-a-2:checked ~ nav label:nth-child(10),
#slide-a-3:checked ~ nav label:nth-child(6),
#slide-a-3:checked ~ nav label:nth-child(7),
#slide-a-3:checked ~ nav label:nth-child(8),
#slide-a-3:checked ~ nav label:nth-child(9),
#slide-a-3:checked ~ nav label:nth-child(10),
#slide-a-4:checked ~ nav label:nth-child(6),
#slide-a-4:checked ~ nav label:nth-child(7),
#slide-a-4:checked ~ nav label:nth-child(8),
#slide-a-4:checked ~ nav label:nth-child(9),
#slide-a-4:checked ~ nav label:nth-child(10),
#slide-a-5:checked ~ nav label:nth-child(6),
#slide-a-5:checked ~ nav label:nth-child(7),
#slide-a-5:checked ~ nav label:nth-child(8),
#slide-a-5:checked ~ nav label:nth-child(9),
#slide-a-5:checked ~ nav label:nth-child(10),
#slide-b-1:checked ~ nav label:nth-child(1),
#slide-b-1:checked ~ nav label:nth-child(2),
#slide-b-1:checked ~ nav label:nth-child(3),
#slide-b-1:checked ~ nav label:nth-child(4),
#slide-b-1:checked ~ nav label:nth-child(5),
#slide-b-2:checked ~ nav label:nth-child(1),
#slide-b-2:checked ~ nav label:nth-child(2),
#slide-b-2:checked ~ nav label:nth-child(3),
#slide-b-2:checked ~ nav label:nth-child(4),
#slide-b-2:checked ~ nav label:nth-child(5),
#slide-b-3:checked ~ nav label:nth-child(1),
#slide-b-3:checked ~ nav label:nth-child(2),
#slide-b-3:checked ~ nav label:nth-child(3),
#slide-b-3:checked ~ nav label:nth-child(4),
#slide-b-3:checked ~ nav label:nth-child(5),
#slide-b-4:checked ~ nav label:nth-child(1),
#slide-b-4:checked ~ nav label:nth-child(2),
#slide-b-4:checked ~ nav label:nth-child(3),
#slide-b-4:checked ~ nav label:nth-child(4),
#slide-b-4:checked ~ nav label:nth-child(5),
#slide-b-5:checked ~ nav label:nth-child(1),
#slide-b-5:checked ~ nav label:nth-child(2),
#slide-b-5:checked ~ nav label:nth-child(3),
#slide-b-5:checked ~ nav label:nth-child(4),
#slide-b-5:checked ~ nav label:nth-child(5) {
  top: 0;
}
#slide-a-1:checked ~ nav label:nth-child(1),
#slide-a-1:checked ~ nav label:nth-child(2),
#slide-a-1:checked ~ nav label:nth-child(3),
#slide-a-1:checked ~ nav label:nth-child(4),
#slide-a-1:checked ~ nav label:nth-child(5),
#slide-a-2:checked ~ nav label:nth-child(1),
#slide-a-2:checked ~ nav label:nth-child(2),
#slide-a-2:checked ~ nav label:nth-child(3),
#slide-a-2:checked ~ nav label:nth-child(4),
#slide-a-2:checked ~ nav label:nth-child(5),
#slide-a-3:checked ~ nav label:nth-child(1),
#slide-a-3:checked ~ nav label:nth-child(2),
#slide-a-3:checked ~ nav label:nth-child(3),
#slide-a-3:checked ~ nav label:nth-child(4),
#slide-a-3:checked ~ nav label:nth-child(5),
#slide-a-4:checked ~ nav label:nth-child(1),
#slide-a-4:checked ~ nav label:nth-child(2),
#slide-a-4:checked ~ nav label:nth-child(3),
#slide-a-4:checked ~ nav label:nth-child(4),
#slide-a-4:checked ~ nav label:nth-child(5),
#slide-a-5:checked ~ nav label:nth-child(1),
#slide-a-5:checked ~ nav label:nth-child(2),
#slide-a-5:checked ~ nav label:nth-child(3),
#slide-a-5:checked ~ nav label:nth-child(4),
#slide-a-5:checked ~ nav label:nth-child(5),
#slide-b-1:checked ~ nav label:nth-child(6),
#slide-b-1:checked ~ nav label:nth-child(7),
#slide-b-1:checked ~ nav label:nth-child(8),
#slide-b-1:checked ~ nav label:nth-child(9),
#slide-b-1:checked ~ nav label:nth-child(10),
#slide-b-2:checked ~ nav label:nth-child(6),
#slide-b-2:checked ~ nav label:nth-child(7),
#slide-b-2:checked ~ nav label:nth-child(8),
#slide-b-2:checked ~ nav label:nth-child(9),
#slide-b-2:checked ~ nav label:nth-child(10),
#slide-b-3:checked ~ nav label:nth-child(6),
#slide-b-3:checked ~ nav label:nth-child(7),
#slide-b-3:checked ~ nav label:nth-child(8),
#slide-b-3:checked ~ nav label:nth-child(9),
#slide-b-3:checked ~ nav label:nth-child(10),
#slide-b-4:checked ~ nav label:nth-child(6),
#slide-b-4:checked ~ nav label:nth-child(7),
#slide-b-4:checked ~ nav label:nth-child(8),
#slide-b-4:checked ~ nav label:nth-child(9),
#slide-b-4:checked ~ nav label:nth-child(10),
#slide-b-5:checked ~ nav label:nth-child(6),
#slide-b-5:checked ~ nav label:nth-child(7),
#slide-b-5:checked ~ nav label:nth-child(8),
#slide-b-5:checked ~ nav label:nth-child(9),
#slide-b-5:checked ~ nav label:nth-child(10) {
  top: 15px;
}
#slide-a-1:checked ~ nav label:nth-child(6),
#slide-a-2:checked ~ nav label:nth-child(7),
#slide-a-3:checked ~ nav label:nth-child(8),
#slide-a-4:checked ~ nav label:nth-child(9),
#slide-a-5:checked ~ nav label:nth-child(10),
#slide-b-1:checked ~ nav label:nth-child(1),
#slide-b-2:checked ~ nav label:nth-child(2),
#slide-b-3:checked ~ nav label:nth-child(3),
#slide-b-4:checked ~ nav label:nth-child(4),
#slide-b-5:checked ~ nav label:nth-child(5) {
  -webkit-animation: bg-1 10s ease infinite;
  -moz-animation: bg-1 10s ease infinite;
  -ms-animation: bg-1 10s ease infinite;
  -o-animation: bg-1 10s ease infinite;
  animation: bg-1 10s ease infinite;
}
#slide-a-1:checked ~ nav > label:nth-child(7),
#slide-a-2:checked ~ nav > label:nth-child(8),
#slide-a-3:checked ~ nav > label:nth-child(9),
#slide-a-4:checked ~ nav > label:nth-child(10),
#slide-a-5:checked ~ nav > label:nth-child(6),
#slide-b-1:checked ~ nav > label:nth-child(2),
#slide-b-2:checked ~ nav > label:nth-child(3),
#slide-b-3:checked ~ nav > label:nth-child(4),
#slide-b-4:checked ~ nav > label:nth-child(5),
#slide-b-5:checked ~ nav > label:nth-child(1) {
  -webkit-animation: bg 10s ease infinite;
  -moz-animation: bg 10s ease infinite;
  -ms-animation: bg 10s ease infinite;
  -o-animation: bg 10s ease infinite;
  animation: bg 10s ease infinite;
}
#slide-a-1:checked ~ nav > label:nth-child(8),
#slide-a-2:checked ~ nav > label:nth-child(9),
#slide-a-3:checked ~ nav > label:nth-child(10),
#slide-a-4:checked ~ nav > label:nth-child(6),
#slide-a-5:checked ~ nav > label:nth-child(7),
#slide-b-1:checked ~ nav > label:nth-child(3),
#slide-b-2:checked ~ nav > label:nth-child(4),
#slide-b-3:checked ~ nav > label:nth-child(5),
#slide-b-4:checked ~ nav > label:nth-child(1),
#slide-b-5:checked ~ nav > label:nth-child(2) {
  -webkit-animation: bg 10s ease infinite 2s;
  -moz-animation: bg 10s ease infinite 2s;
  -ms-animation: bg 10s ease infinite 2s;
  -o-animation: bg 10s ease infinite 2s;
  animation: bg 10s ease infinite 2s;
}
#slide-a-1:checked ~ nav > label:nth-child(9),
#slide-a-2:checked ~ nav > label:nth-child(10),
#slide-a-3:checked ~ nav > label:nth-child(6),
#slide-a-4:checked ~ nav > label:nth-child(7),
#slide-a-5:checked ~ nav > label:nth-child(8),
#slide-b-1:checked ~ nav > label:nth-child(4),
#slide-b-2:checked ~ nav > label:nth-child(5),
#slide-b-3:checked ~ nav > label:nth-child(1),
#slide-b-4:checked ~ nav > label:nth-child(2),
#slide-b-5:checked ~ nav > label:nth-child(3) {
  -webkit-animation: bg 10s ease infinite 4s;
  -moz-animation: bg 10s ease infinite 4s;
  -ms-animation: bg 10s ease infinite 4s;
  -o-animation: bg 10s ease infinite 4s;
  animation: bg 10s ease infinite 4s;
}
#slide-a-1:checked ~ nav > label:nth-child(10),
#slide-a-2:checked ~ nav > label:nth-child(6),
#slide-a-3:checked ~ nav > label:nth-child(7),
#slide-a-4:checked ~ nav > label:nth-child(8),
#slide-a-5:checked ~ nav > label:nth-child(9),
#slide-b-1:checked ~ nav > label:nth-child(5),
#slide-b-2:checked ~ nav > label:nth-child(1),
#slide-b-3:checked ~ nav > label:nth-child(2),
#slide-b-4:checked ~ nav > label:nth-child(3),
#slide-b-5:checked ~ nav label:nth-child(4) {
  -webkit-animation: bg 10s ease infinite 6s;
  -moz-animation: bg 10s ease infinite 6s;
  -ms-animation: bg 10s ease infinite 6s;
  -o-animation: bg 10s ease infinite 6s;
  animation: bg 10s ease infinite 6s;
}
@-webkit-keyframes bg-1 {
  0%,
  21%,
  100% {
    background: #ccc;
  }
  0%,
  20% {
    background: #333;
  }
}
@-moz-keyframes bg-1 {
  0%,
  21%,
  100% {
    background: #ccc;
  }
  0%,
  20% {
    background: #333;
  }
}
@-ms-keyframes bg-1 {
  0%,
  21%,
  100% {
    background: #ccc;
  }
  0%,
  20% {
    background: #333;
  }
}
@-o-keyframes bg-1 {
  0%,
  21%,
  100% {
    background: #ccc;
  }
  0%,
  20% {
    background: #333;
  }
}
@keyframes bg-1 {
  0%,
  21%,
  100% {
    background: #ccc;
  }
  0%,
  20% {
    background: #333;
  }
}
@-webkit-keyframes bg {
  0%,
  19%,
  41%,
  100% {
    background: #ccc;
  }
  20%,
  40% {
    background: #333;
  }
}
@-moz-keyframes bg {
  0%,
  19%,
  41%,
  100% {
    background: #ccc;
  }
  20%,
  40% {
    background: #333;
  }
}
@-ms-keyframes bg {
  0%,
  19%,
  41%,
  100% {
    background: #ccc;
  }
  20%,
  40% {
    background: #333;
  }
}
@-o-keyframes bg {
  0%,
  19%,
  41%,
  100% {
    background: #ccc;
  }
  20%,
  40% {
    background: #333;
  }
}
@keyframes bg {
  0%,
  19%,
  41%,
  100% {
    background: #ccc;
  }
  20%,
  40% {
    background: #333;
  }
}
@-webkit-keyframes opacity-0 {
  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }
  20%,
  80% {
    opacity: 0;
  }
}
@-moz-keyframes opacity-0 {
  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }
  20%,
  80% {
    opacity: 0;
  }
}
@-ms-keyframes opacity-0 {
  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }
  20%,
  80% {
    opacity: 0;
  }
}
@-o-keyframes opacity-0 {
  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }
  20%,
  80% {
    opacity: 0;
  }
}
@keyframes opacity-0 {
  0%,
  20%,
  80%,
  100% {
    opacity: 1;
  }
  20%,
  80% {
    opacity: 0;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console