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

              
                <div class="image-gallery">
  <div class="title">CSS Image Gallery - NO JS! - with transition</div>
  <div class="big-image">           
          <img id="html5" src="https://distilleryimage0.s3.amazonaws.com/572f3e0663f711e2a74422000a1ddb8e_7.jpg" />
          <img id="css3" src="https://distilleryimage5.s3.amazonaws.com/65e28bacc12011e2868722000aaa088a_7.jpg" />
              <img id="less" src="https://distilleryimage8.s3.amazonaws.com/b56ea27263f711e29a0d22000a9f1320_7.jpg" />
                  <img id="modern" src="https://distilleryimage0.s3.amazonaws.com/bc6ab010bd3a11e2988a22000ae9082c_7.jpg" />
              <img id="default" src="https://distilleryimage0.s3.amazonaws.com/572f3e0663f711e2a74422000a1ddb8e_7.jpg" />
  </div>
  <ul>
    <li>
      <a href="#html5"><img  src="https://distilleryimage0.s3.amazonaws.com/572f3e0663f711e2a74422000a1ddb8e_7.jpg" /></a></li>
    <li>
      <a href="#css3"><img  src="https://distilleryimage5.s3.amazonaws.com/65e28bacc12011e2868722000aaa088a_7.jpg" /></a>
    </li>
    <li>
       <a href="#less"><img  src="https://distilleryimage8.s3.amazonaws.com/b56ea27263f711e29a0d22000a9f1320_7.jpg" /></a>
    </li>
    <li>
       <a href="#modern"><img  src="https://distilleryimage0.s3.amazonaws.com/bc6ab010bd3a11e2988a22000ae9082c_7.jpg" /></a>
    </li>
    <a href="https://coderwall.com/elad2412" target="_blank" class="by">Developed by Elad Shechter - <div style="font-weight:bold; font-size:16px;">https://coderwall.com/elad2412</div></a>
</div>  
              
            
!

CSS

              
                /*Gallery Container*/
.image-gallery{
  width:300px;
  background-color:#eec1a6;
  padding:20px;
  border-radius:20px;
  border:solid 1px #c5c5c5;
}
/*Sets Big Image style*/
.image-gallery .big-image{
  width:159px;
  height:159px;
  border:solid 1px gray;
  padding:10px;
  margin:0 auto;
  background-color:white;  
  position:relative;
}
.image-gallery .big-image img{
  opacity:0;position:absolute;left:10px;top:10px; width:159px;
  margin:0 auto;
  transition: opacity 350ms;
-moz-transition: opacity 350ms; /* Firefox 4 */
-webkit-transition: opacity 350ms; /* Safari and Chrome */
-o-transition: opacity 350ms; /* Opera */
}

/*Selected image display*/
.image-gallery .big-image img:target{opacity:1;}
/*on select image display none the default image*/
.image-gallery .big-image img:target ~ img#default{opacity:0;}

/*Show Default Image in first load*/
.image-gallery .big-image img#default{opacity:1;}


.image-gallery ul{margin-top:15px;}
.image-gallery li{float:left;
  opacity:0.7; margin-right:3px;}
.image-gallery li:hover{
  opacity:1;
  background-color:rgba(255,255,255,0.8);
}
.image-gallery li img{width:72px;}


/*other styles*/
.title{font-size:20px;font-weight:bold;color:#633317;text-align:center;margin-bottom:15px;}
.by{clear:both;display:block;font-size:12px;text-align:right;color:#633317;padding-top:5px;}
/*reset CSS*/
*{font-family:arial;}
ul,li{list-style:none;margin:0;padding:0;}
              
            
!

JS

              
                
              
            
!
999px

Console