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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <!--jquery overlay-->
<div class="gallerycontent">
<div class="reference">
           	<ul class="image_gallery">
               <li><a id="activator-bureau" class="activator"><img src="" alt="buro" /></a></li>
              <li><a id="activator-werkwijze" class="activator"><img src="" alt="" /></a></li>
              <li><a id="activator-klanten" class="activator"><img src="" alt="" /></a></li>
              <li><a id="activator-contact" class="activator"><img src="" alt="" /></a></li>
       <!--jquery overlay content box-->                                               
              <div id="activator-werkwijze-overlay" class="overlay"></div>
              <div id="activator-bureau-overlay" class="overlay"></div>
              <div id="activator-klanten-overlay" class="overlay"></div>
              <div id="activator-contact-overlay" class="overlay"></div>

            <div class="box" id="activator-bureau-box">
	          <a class="boxclose" id="boxclose-bureau">x</a>
            <div class="slidewrap">texxt.</div> 

            <div class="box" id="activator-werkwijze-box">
	          <a class="boxclose" id="boxclose-werkwijze">x</a>
            <div class="slidewrap">texxt</div>

            <div class="box" id="activator-klanten-box">
          	<a class="boxclose" id="boxclose-klanten">x</a>
	          <div class="slidewrap">texxt .</div>          

            <div class="box" id="activator-contact-box">
	          <a class="boxclose" id="boxclose-contact">x</a>
	          <div class="slidewrap">texxt QWTRQTRQT.</div>          


width: 800px;
border:solid #FF0000 3px;
position: relative; 
.image_gallery li {
display: inline;
list-style: none;
width: 200px;
height: 200px;
float: left;
margin: 4px 4px 4px 4px;
border:solid #FF0000 3px;}

    left: 0;
    margin-left: 0;
    min-height: 450px;
    width: 100%;
    z-index: 101;

a.activator {
    cursor: pointer;


a.boxclose {
    border: 0 solid #FFFFFF;
    cursor: pointer;
    float: right;
    height: 36px;
    margin-right: 0;
    margin-top: 0;
    width: 36px;



                $('.reference a').click(function(){
    //get ID of clicked button and appends -box to it so it matches the box id
	var boxId= $(this).attr('ID')+"-box";
    //get ID of clicked button and appends -overlay to it so it matches the overlay id
    var overlayId= $(this).attr('ID')+"-overlay";
    //animates all items with box class to -600px and fades out all items with overlay class
      			//closes all items with overlay class
    //tells the current overlay to fade in
        		//animates current box bottom position to 0


//tells all items with boxclose class to animate its parents bottom to -600