cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="exp">
  <div class="screen">
    <div class="page">
      <header>
        <span></span>
        <em></em>
      </header>
      <div class="faux-image">
        <svg height="80" width="100">
          <circle cx="30" cy="15" r="6" style="fill:transparent;stroke:#fff;stroke-width:3" />
  <polygon points="10,65 30,30 40,40 60,10 85,65" style="fill:transparent;stroke:#fff;stroke-width:3" />
<line x1="0" y1="65" x2="100" y2="65" style="stroke: #fff; stroke-width: 3" />
</svg>
      </div>
      <p>&nbsp;</p>
      <section></section>
      <section></section>
      <section></section>
      <section></section>
      <section></section>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <section></section>
      <section></section>
      <section></section>
      <section></section>
      <section></section>
      <p>&nbsp;</p>
      <section></section>
      <section></section>
      <section></section>
      <section></section>
      <p>&nbsp;</p>
      <div class="icons">
        <i></i>
        <i></i>
        <i></i>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              html {
  height: 100%; // for styling only
}

* {
  box-sizing: border-box;
}

body {
  background-color: #1790b5; // for styling only
  height: 100%; // for styling only
  font-family: 'Open Sans', sans-serif;
}

.exp {
  width: 100%; // for example positioning purposes
  height: 100%; // for example positioning purposes
  position: relatve;
 
}

.screen {
  width: 300px;
  height: 200px;
  border: 3px solid #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -100px 0 0 -150px;
  border-radius: 4px;
  overflow: hidden;
}

.page {
  width: 100%;
  height: 400px;
  top: 0;
  left: 0;
  padding: 0;
  position: absolute;
  animation: pagescroll 10s infinite; 
  
  p {
    height: 1px;
    margin-bottom: 5px;
  }
  
  section {
    display: block;
    height: 5px;
    background-color: #fff;
    margin: 0 10px 10px 10px;
  }
  
  @for $i from 6 through 50 {
    section:nth-of-type(#{$i}) {
    width: random(50) + 220 + px;
    }

  }
  
  @for $i from 1 through 5 {
    section:nth-of-type(#{$i}) {
    width: random(20) + 120 + px;
      margin-left: 140px;
    }
   }
  
  .icons {
    text-align: center;
  }
  
  i {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 10px 30px;
    border: 3px solid #fff;
  }
  
  header {
    wdith: 100%;
    height: 70px;
    border-bottom: 3px solid #fff;
    margin-bottom: 20px;
    text-align: center;
    
    span {
     display: inline-block;
      background-color: #fff;
      width: 180px;
      margin: 20px 0 0 0;
      height: 10px;
    }
    
    em {
      display: inline-block;
      height: 5px;
      width: 130px;
      background: #fff;
    }
  }
  
  .faux-image {
    width: 100px;
    height: 80px;
    border: 3px solid #fff;
    float: left;
    margin: 0 20px 0 20px;
    position: relative;
    overflow: hidden;
  }
  
  .clear {
    display: table;
    clear: both;
  }
}


@keyframes pagescroll {
  0% {
   transform: translateY(0);
     }
  
  1% {
        transform: translateY(0);
      }

  15% {
        transform: translateY(-80px);
       }
  
  17% {
    transform: translateY(-80px);
  }
  
  30% {
        transform: translateY(-200px);
    }
  
  35% {
        transform: translateY(-200px);
    }
  
  50% {
        transform: translateY(0);
    }
}
            
          
!
999px
Loading ..................

Console