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.

+ 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.

            
              <div id="displayModal" class="modal active">
  <div id="date">March 13, 2013</div>
  <div id="location">Seattle, WA</div>
    <img src="http://placeimg.com/500/500/people" id="showImage" width="500" height="500">
	  <div id="notesControls">
    	<div id="previewNotesOverlay">This is a caption for the photo.
    </div>
		    <div class="controls">
      <ul>
        <li>
          <a class="first" href="#">edit</a>
        </li>

        <li>
          <a class="second" href="#">add</a>
        </li>

        <li>
          <a class="third" href="#">share</a>
        </li>
      </ul>
		    </div>
	  </div>
</div>
<!--
<div id="displayModal" class="modal active">
  <div id="date">July 10, 2013</div>
  <div id="location">Seattle, WA</div>
    <img src="http://lorempixel.com/500/500/city" id="showImage" width="500" height="500">
	  <div id="notesControls">
    	<div id="previewNotesOverlay">This is a caption for the photo.
    </div>
		    <div class="controls">
      <ul>
        <li>
          <a class="first" href="#">edit</a>
        </li>
        <!--
        <li>
          <a class="second" href="#">add</a>
        </li>
        -->
        <!--<li>
          <a class="third" href="#">share</a>
        </li>
      </ul>
		    </div>
	  </div>
</div>-->
            
          
!
            
              body {
  background: #293056;
}
.modal {
  font-family: sans-serif;
  position: relative;
  left: 10%;
  /*position: absolute;
  top: 20%;
  left: 30%;
  */
  opacity: 1;
  -webkit-transition: opacity 0.2s ease-in-out;
  display: inline-block;
  margin: 7rem 1.5rem;
}

.modal#displayModal {
  border: none;
  box-shadow: 0px 10px 60px rgba(0,0,0,0.4);
  -webkit-transition: all 0.2s ease-in-out; 
  	transition: all 0.2s ease-in-out; 
  	-moz-transition: all 0.2s ease-in-out;
 	-o-transition: all 0.2s ease-in-out; 
}

.modal#displayModal:hover{
  transform: scale(1.1);
  -webkit-transition: all 0.2s ease-in-out; 
  	transition: all 0.2s ease-in-out; 
  	-moz-transition: all 0.2s ease-in-out;
 	-o-transition: all 0.2s ease-in-out; 
}

.modal#displayModal img {
  margin-bottom: -4px;
  background: #000000;
}

.modal#displayModal:hover #notesControls {
  	opacity: 1;
  	-webkit-transition: all 0.2s ease-in-out; 
  	transition: all 0.2s ease-in-out; 
  	-moz-transition: all 0.2s ease-in-out;
 	-o-transition: all 0.2s ease-in-out;   
	position: absolute;
	bottom: 0;
  }

.modal#displayModal:hover #date{
  	opacity: 1;
  	-webkit-transition: all 0.2s ease-in-out; 
  	transition: all 0.2s ease-in-out; 
  	-moz-transition: all 0.2s ease-in-out;
 	-o-transition: all 0.2s ease-in-out;   
	position: absolute;
	top: -90px;
  }

.modal#displayModal:hover #location{
  	opacity: 1;
  	-webkit-transition: all 0.2s ease-in-out; 
  	transition: all 0.2s ease-in-out; 
  	-moz-transition: all 0.2s ease-in-out;
 	-o-transition: all 0.2s ease-in-out;   
	position: absolute;
	top: -42px;
  }

.modal#displayModal #date {
  	background: rgba(0,0,0,0.2);
  	position: absolute;
  	top: 0px;
  	left: 0;
  	right: 0;
  	padding: .8rem;
    margin: 1rem auto;
  	color: white;
  	opacity: 0;
	  font-size: 14px;
	  -webkit-transition: all 0.3s ease-in-out; 
	  transition: all 0.2s ease-in-out; 
	  -moz-transition: all 0.2s ease-in-out;
	  -o-transition: all 0.2s ease-in-out;
    text-align: center;
    border-radius: 30px;
    width: 30%;
  }
.modal#displayModal #location {
  	/*background: rgba(0,0,0,0.2);*/
  	position: absolute;
  	top: 0px;
  	left: 0;
  	right: 0;
  	padding: .2rem;
    margin: 1rem auto;
  	color: white;
  	opacity: 0;
	  font-size: 12px;
	  -webkit-transition: all 0.2s ease-in-out; 
	  transition: all 0.2s ease-in-out; 
	  -moz-transition: all 0.2s ease-in-out;
	  -o-transition: all 0.2s ease-in-out;
    text-align: center;
    border-radius: 30px;
    width: 30%;
  }

.modal#displayModal #notesControls {
  	background-image: -webkit-linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
  	position: absolute;
  	bottom: -30px;
  	left: 0;
  	right: 0;
  	padding: 3em 0em 0rem 0rem;
  	color: white;
  	opacity: 0;
	font-size: 16px;
	-webkit-transition: all 0.2s ease-in-out; 
	transition: all 0.2s ease-in-out; 
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;  
  }
  
  .modal#displayModal #notesControls #previewNotesOverlay {
	  position: relative;
	  border-bottom: 1px solid rgba(255,255,255,0.2);
	  padding: 1.2rem 2rem;
  }
  
  .modal#displayModal #notesControls .controls {
	  display: inline-block;
	  margin: 0 auto;
	  padding: 1rem 0rem 2rem 0rem;
	  font-size: 18px;
	  cursor: pointer;
	  width: 100%;
  }
	
.modal#displayModal:hover #notesControls .controls {
	opacity: 1;
}

ul {
    left: 0px;
    list-style: none;
    overflow: hidden;
    position: absolute;
    width: 100%;
    padding: 0rem;
    margin: 0;
    -webkit-transition: all 200ms ease-out;
	  -moz-transition: all 200ms ease-out;
	  -ms-transition: all 200ms ease-out;
	  -o-transition: all 200ms ease-out;
	  transition: all 200ms ease-out;
} 
ul li {
    cursor: pointer;
    float: left;
    position: relative;
    width: 33.333%;
}    
ul li a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    font-size: 14px;
    -webkit-transition: all 200ms ease-in-out;
	  -moz-transition: all 200ms ease-in-out;
	  -ms-transition: all 200ms ease-in-out;
	  -o-transition: all 200ms ease-in-out;
	  transition: all 200ms ease-in-out;
  text-align: center;
  line-height: 20px;
  opacity: .6;
}

ul li a:hover {
  opacity: 1;
    -webkit-transition: all 200ms ease-in-out;
	-moz-transition: all 200ms ease-in-out;
	-ms-transition: all 200ms ease-in-out;
	-o-transition: all 200ms ease-in-out;
	transition: all 200ms ease-in-out;
}
            
          
!
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