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.

            
              - var n = 0
- var itemNumber = 50
.w
  while n < itemNumber
    .i
    - n++
  .h
    h1 Don't Panic
.info
  h2 Hover effect #2
  a.source(href="https://codepen.io/hmdmweb/pen/EyhID") first version
  br
  a.source(href="https://unsplash.com/") photo : unsplash
  
  
            
          
!
            
              @import "compass/css3";

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

$itemWidth : 40px ;
$url : 'http://unsplash.imgix.net/reserve/de9uL9L7RSmzV4SAoAO5_Lauren%20and%20Winona%20Under%20a%20pass-1.jpg?fit=crop&fm=jpg&h=1500&q=75&w=2400';
$url2 : 'https://unsplash.imgix.net/reserve/PPE2xapKRNyy2DlTt89F_Gutman_island.jpg?fit=crop&fm=jpg&h=1500&q=75&w=2400';

body {
  background: #111b25;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #fff;
  padding: 0;
  margin: 0;
}
h1{
  font-family: "Pacifico";
}


.info{
  max-width : 1200px;
  margin: 0 auto;  
  text-align: center;
}
a{
  color : beige;
}

.w{
  margin: 0 auto;
  white-space: nowrap;
  max-width: 1200px;
  width: 100%;
  height: 600px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
 background:rgba(#424242,.5) url($url2) repeat fixed;
  background-position: 50% 100%;
  background-size : cover;
  position: relative;
  z-index: 5;
  font-size: 0;
}
.i{
  width: $itemWidth;
  height: 100%;
  display: inline-block;
  position: relative;
  z-index: 4;
  padding: 2px;
  transition: all 1.3s ease-in-out;
  background:rgba(#424242,.5) url($url) repeat fixed;
    background-size : cover;
  background-position: 50% 100%;
  border-radius : 0%;

  &:hover{
    transition: all 0s linear;
    opacity:0;

  }
}
.h{
display: block;
position: absolute;
z-index: 2;
width: 100%;
text-align: center;
top: 35px;
font-size: 40px;
color: rgba(245, 245, 220, 1);
text-shadow: 0 5px 17px rgba(87, 87, 80, 0.85);

}


            
          
!
999px
Loading ..................

Console