css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="carousel">
  <ul class="panes">
    
    <li id="s1">
      <img src="http://placekitten.com/950/300">   
      <div class="content">
          <h3>RAY-BAN</h3>
          <p>Iconic style is always in fashion</p>
      </div>
    </li>
      
    <li id="s2">
      <img src="http://placekitten.com/950/300">
      <div class="content">
        <h3>RAY-BAN</h3>
        <p>Iconic style is always in fashion</p>
      </div>
    </li>
      
    <li id="s3">
      <img src="http://placekitten.com/950/300">
      <div class="content">
        <h3>RAY-BAN</h3>
          <p>Iconic style is always in fashion</p>
      </div>
    </li>
      
    <li id="s4">
      <img src="http://placekitten.com/950/300">
      <div class="content">
        <h3>RAY-BAN</h3>
          <p>Iconic style is always in fashion</p>
      </div>
    </li>
      
    <li id="s5">
      <img src="http://placekitten.com/950/300">
      <div class="content">
        <h3>RAY-BAN</h3>
          <p>Iconic style is always in fashion</p>
      </div>
    </li>
  </ul>
</div>
            
          
!
            
              
/*------------------------------------*\
    $SHARED
\*------------------------------------*/
h1,p,
.carousel{
    margin-bottom:24px;
    margin-bottom:2rem;
}

/*------------------------------------*\
    $MAIN
\*------------------------------------*/
html{
    font:0.75em/1.5 "Helvetica Neue", Arial, sans-serif;
    color:#333;
    background-color:#fff;
    padding:5% 25%;
}
small{
    color:#999;
}
a{
    color:#09f;
}

/*------------------------------------*\
    $CAROUSEL
\*------------------------------------*/
.carousel{
    overflow:hidden;
    width:100%;
    position:absolute;
    left:0;
    top:0;
}
.panes{
    list-style:none;
    position:relative;
    height:100%;
    width:500%; /* Number of panes * 100% */
    overflow:hidden; /* This is used solely to clear floats, it does not add functionality. */
     
    -webkit-animation:carousel 30s infinite;
       -moz-animation:carousel 30s infinite;
            animation:carousel 30s infinite;
}
.panes > li{
    position:relative;
    float:left;
    width:20%; /* 100 / number of panes */
}
.panes > li > a{
    display:block;
}
.carousel img{
    display:block;
    width:100%;
    max-width:100%;
}
.carousel h2{
    font-size:1em;
    padding:0.5em;
    position:absolute;
    right:10px;
    bottom:10px;
    left:10px;
    text-align:right;
    color:#fff;
    background-color:rgba(0,0,0,0.75);
}

@-moz-keyframes carousel{
    0%    { left:0; }
    11%   { left:0; }
    12.5% { left:-100%; }
    23.5% { left:-100%; }
    25%   { left:-200%; }
    36%   { left:-200%; }
    37.5% { left:-300%; }
    48.5% { left:-300%; }
    50%   { left:-400%; }
    61%   { left:-400%; }
    62.5% { left:-300%; }
    73.5% { left:-300%; }
    75%   { left:-200%; }
    86%   { left:-200%; }
    87.5% { left:-100%; }
    98.5% { left:-100%; }
    100%  { left:0; }
}

@-webkit-keyframes carousel{
    0%    { left:0; }
    11%   { left:0; }
    12.5% { left:-100%; }
    23.5% { left:-100%; }
    25%   { left:-200%; }
    36%   { left:-200%; }
    37.5% { left:-300%; }
    48.5% { left:-300%; }
    50%   { left:-400%; }
    61%   { left:-400%; }
    62.5% { left:-300%; }
    73.5% { left:-300%; }
    75%   { left:-200%; }
    86%   { left:-200%; }
    87.5% { left:-100%; }
    98.5% { left:-100%; }
    100%  { left:0; }
}

@keyframes carousel{
    0%    { left:0; }
    11%   { left:0; }
    12.5% { left:-100%; }
    23.5% { left:-100%; }
    25%   { left:-200%; }
    36%   { left:-200%; }
    37.5% { left:-300%; }
    48.5% { left:-300%; }
    50%   { left:-400%; }
    61%   { left:-400%; }
    62.5% { left:-300%; }
    73.5% { left:-300%; }
    75%   { left:-200%; }
    86%   { left:-200%; }
    87.5% { left:-100%; }
    98.5% { left:-100%; }
    100%  { left:0; }
}

.content {
  position:absolute;
  top:0; 
  right:0; 
  height:100%;
  width:20%;
  padding:10%;
  background: rgb(164,78,0); /* Old browsers */
  background: -moz-linear-gradient(-45deg,  rgba(164,78,0,1) 0%, rgba(239,127,32,1) 46%, rgba(240,185,37,1) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(164,78,0,1)), color-stop(46%,rgba(239,127,32,1)), color-stop(100%,rgba(240,185,37,1))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(-45deg,  rgba(164,78,0,1) 0%,rgba(239,127,32,1) 46%,rgba(240,185,37,1) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(-45deg,  rgba(164,78,0,1) 0%,rgba(239,127,32,1) 46%,rgba(240,185,37,1) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(-45deg,  rgba(164,78,0,1) 0%,rgba(239,127,32,1) 46%,rgba(240,185,37,1) 100%); /* IE10+ */
  background: linear-gradient(135deg,  rgba(164,78,0,1) 0%,rgba(239,127,32,1) 46%,rgba(240,185,37,1) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a44e00', endColorstr='#f0b925',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.content h3  {
  font: 26px Futura, "Trebuchet MS", Arial, sans-serif;
  position:relative;
  color:#FFF;
}
  
li#s1  h3  {
  -webkit-animation: title1 20s linear 0s infinite  ; 
  animation: title1 1s linear 5s infinite  ;
}
li#s2 h3  {
  -webkit-animation: title2 1s linear 30s forwards;
  animation: title2 1s linear 5s forwards; 
}
li#s3 h3  {
  -webkit-animation: title3 1s linear 60s forwards;
  animation: title3 1s linear 10s forwards; 
}

.content p  {font:italic 14px Georgia, Times, "Times New Roman", serif; position:relative; top:0px; right:0; }


@-moz-keyframes title1 {
    0% { left:0px; opacity:0; }
    11% { left:200px; opacity:1; }
    98.5% { left:200px; opacity:1; }
    100% { left:0px; opacity:0; } 
}

@-webkit-keyframes title1 {
    0% { left:100px; opacity:0; }
    11% { left:200px; opacity:1; }
    98.5% { left:200px; opacity:1; }
    100% { left:100px; opacity:0; } 
}

@keyframes title1{
    0% { left:100px; opacity:0; }
    11% { left:200px; opacity:1; }
    98.5% { left:200px; opacity:1; }
    100% { left:100px; opacity:0; } 
}

@-moz-keyframes title2{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}

@-webkit-keyframes title2{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}

@keyframes title2{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}
@-moz-keyframes title3{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}

@-webkit-keyframes title3{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}

@keyframes title3{
    0%    { left:0%; opacity:0; }
    100%  { left:40%; opacity:1; }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console