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

+ 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 id="wrapper">
            <div id="dynamikaj" class="thumb">
                <div class="title_thumb">Anamorphic typeface</div>
                <div class="view_thumb">View project</div>
                <div class="layer_thumb"></div>
                <img src="http://nsa39.casimages.com/img/2017/10/28/171028051551401927.jpg">
            </div>
            <div id="nova" class="thumb">
                <div class="title_thumb">Responsive editorial layout</div>
                <div class="view_thumb">View project</div>
                <div class="layer_thumb"></div>
                <img src="http://nsa39.casimages.com/img/2017/10/28/171028051551401927.jpg">
            </div> 
            <div id="playground" class="thumb">
                <div class="title_thumb">Playground</div>
                <div class="view_thumb">View project</div>
                <div class="layer_thumb"></div> 
                <img src="http://nsa39.casimages.com/img/2017/10/28/171028051551401927.jpg">
            </div>
            <div class="thumb">
                <div class="title_thumb">SVG Fonts Experimentation</div>
                <div class="view_thumb">View project</div>
                <div class="layer_thumb"></div>
                <img src="http://nsa39.casimages.com/img/2017/10/28/171028051551401927.jpg">
            </div>
        </div>
              
            
!

CSS

              
                
#wrapper {
    margin: 95px 45px 0 45px;
    padding-bottom: 30px;
    position: relative;
}

.thumb {
    width: calc(50% - 8px);
    margin-bottom: 16px;
    font-size: 0;   /* Remove space bellow pic */
    line-height: 0; /* Remove space bellow pic */
    display: inline-block;
    position: relative;

}
.thumb:nth-child(even) {
    float: right;
}
.thumb img {
    width: 100%;
}

.layer_thumb {
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    transition: 0.2s ease;
}
.text_thumb {
    width: 100%;
    position: absolute;
    z-index: 9;
}
.title_thumb {
    font-family: Sharp Grotesk;
    font-size: 15pt;
    line-height: 16pt;
    color: white;
    left: 20px;
    top: 30%;
    z-index: 9;
    opacity: 0;
    display: none;
    position: absolute;
}
.view_thumb {
    font-family: Maison Neue;
    font-size: 10pt;
    color: grey;
    left: 20px;
    bottom: 20px;
    z-index: 9;
    opacity: 0;
    display: none;
    position: absolute;
}
              
            
!

JS

              
                $(document).ready(function(){        

    $(".thumb").hover(over, out);

    function over(){
        
        TweenMax.to($(this).find(".title_thumb"), 0.3, {display:"block" , opacity:"1" , marginTop:"20px" , ease:Power2.easeOut , delay:"0.2"})
        TweenMax.to($(this).find(".view_thumb"), 0.3, {display:"block" , opacity:"1" , ease:Power2.easeOut , delay:"0.5"});
        TweenMax.to($(this).find(".layer_thumb"), 0.02, {opacity:"1" , ease:Power2.easeOut});

    }

    function out(){
        TweenMax.to($(this).find(".title_thumb"), 0.3, {display:"none" , opacity:"0" , marginTop:"0px" , ease:Power2.easeOut})
        TweenMax.to($(this).find(".view_thumb"), 0.2, {display:"none" , opacity:"0" , marginTop:"0px" , ease:Power2.easeOut})
        TweenMax.to($(this).find(".layer_thumb"), 0.02, {opacity:"0" , ease:Power2.easeOut});

    }

});


              
            
!
999px

Console