Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                  <div class="container">
    <div class="slider-container">
      <img src="https://drive.google.com/uc?export=view&id=1xyjYe4rMm8dVKwQAG5fYWamOrIopnMIx" id="logo" />
      <div class="slider">
        <div class="slide majin">
          <strong>MAJIN BUU</strong>
        </div>
        <div class="slide krillin">
          <strong>KRILLIN</strong>
        </div>
        <div class="slide android18">
          <strong>ANDROID 18</strong>
        </div>
        <div class="slide android17">
          <strong>ANDROID 17</strong>
        </div>
        <div class="slide goku">
          <strong>GOKU</strong>
        </div>
        <div class="slide vegeta">
          <strong>VEGETA</strong>
        </div>
        <div class="slide gohan">
          <strong>GOHAN</strong>
        </div>
        <div class="slide master">
          <strong>MASTER ROSHI</strong>
        </div>
        <div class="slide tien">
          <strong>TIEN</strong>
        </div>
        <div class="slide piccolo">
          <strong>PICCOLO</strong>
        </div>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://drive.google.com/uc?export=view&id=1S_T9rchzIQbpB51KtERGBY0gFtoQ-LFU");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
.slider {
  &-container {
    max-width: 1000px;
    width: 100vw;
    height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
    padding-top: 150px;
    #logo {
      width: 700px;
      position: absolute;
      z-index: 1;
      top: -66px;
    }
  }
  display: flex;
  height: 450px;
  width: 100%;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  .slide {
    background: red;
    border: 2px solid #000;
    flex: 1 0 auto;
    display: flex;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease-in-out;
    strong {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 80px;
      position: absolute;
      bottom: 0px;
      width: 100vw;
      left: 10px;
      color: rgba(0, 0, 0, 0.6);
    }
    &:hover {
      flex: 10;
      background-position-x: 50% !important;
    }
    &.majin {
      background-color: #9e2bf7;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1gxbmxRiyP2j3R-hpfzSUKxA6Dp6Hh4je");
      background-position: center center;
      background-size: auto 700px;
      background-position: 50% 0%;
      background-repeat: no-repeat;
    }
    &.krillin {
      background-color: #f5f37a;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1GT4nafk0sfZ6q6LMRDhXyH86l3F0OogI");
      background-position: center center;
      background-size: auto 500px;
      background-position: 56% -121%;
      background-repeat: no-repeat;
    }
    &.android18 {
      background-color: #ff3974;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1E11Apb86cnot0s7VkhvJ2bvsw4rBjxff");
      background-position: center center;
      background-size: auto 700px;
      background-position: 47% -18%;
      background-repeat: no-repeat;
    }
    &.android17 {
      background-color: #170cf0;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1WERcvbZtAUYw-9K8Q_BBQxy5HVc4j3XM");
      background-position: center center;
      background-size: auto 700px;
      background-position: 63% -6%;
      background-repeat: no-repeat;
    }
    &.goku {
      background-color: #ff6f51;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=18V9SKNAYk_xCc2gLtyXcTyBHFB9GQCKq");
      background-position: center center;
      background-size: auto 700px;
      background-position: 37% 0%;
      background-repeat: no-repeat;
    }
    &.vegeta {
      background-color: #00a6f3;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1DFhGMfbb2slIuW0tT-tN3M23lXIBXib7");
      background-position: center center;
      background-size: auto 700px;
      background-position: 40% 0%;
      background-repeat: no-repeat;
    }
    &.gohan {
      background-color: #ceff57;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1jwm7gPq5nwvT10Pks4qpPdCzrE4SJX4H");
      background-position: center center;
      background-size: auto 700px;
      background-position: 50% -9%;
      background-repeat: no-repeat;
    }
    &.master {
      background-color: #ff6fff;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1qSVuAMMkwyVOMv6GbXNdqMZAu_i94e0m");
      background-position: center center;
      background-size: auto 500px;
      background-position: 50% -81%;
      background-repeat: no-repeat;
    }
    &.tien {
      background-color: #00e1d3;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1gKQBpPq0SAcGBAjCeU8jDgRdvj1Itx_t");
      background-position: center center;
      background-size: auto 700px;
      background-position: 50% -18%;
      background-repeat: no-repeat;
    }
    &.piccolo {
      background-color: #69936c;
      background-blend-mode: luminosity;
      background-image: url("https://drive.google.com/uc?export=view&id=1Q-BW5g7oJrXOZimcaIkpbjXgHOom62T_");
      background-position: center center;
      background-size: auto 700px;
      background-position: 60% 27%;
      background-repeat: no-repeat;
    }
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console