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 class="container">
    <div class="col">
        <a href="#" class="sh-container sh-effect--delta">
            <div class="sh-effect--delta__overlay">
                <div class="sh-effect--delta__overlay-inside">
                    <div class="sh-effect--delta__author-meta">
                        <img src="https://secure.gravatar.com/avatar/511c68b33bbb4e963fb2605fcef8a5fb?s=96&amp;d=mm&amp;r=g" alt="Gergo D. Nagy" originals="96" scale="1.25" class="sh-effect--delta__avatar">
                        <time class="sh-effect--delta__date" datetime="2017-12-19T06:00:16+00:00">19th December 2017</time>
                    </div>
                    <h2 class="sh-effect--delta__title">Hosting Private Laravel Packages on GitLab</h2>
                    <div class="sh-effect--delta__meta">Posted in Tools</div>
                </div>
            </div>
            <img src="https://pineco.de/project/simple-hover/assets/images/photo-1456094688423-b9f2172ef198.jpg" alt="" class="sh-effect--delta__image">
        </a>

        <a href="https://pineco.de/using-css-counters/" class="sh-container sh-effect--delta">
            <div class="sh-effect--delta__overlay">
                <div class="sh-effect--delta__overlay-inside">
                    <div class="sh-effect--delta__author-meta">
                        <img src="https://secure.gravatar.com/avatar/fd9479a898c593601efd2fe758a86dba?s=96&d=mm&r=g" alt="Adam Laki" originals="96" scale="1.25" class="sh-effect--delta__avatar">
                        <time class="sh-effect--delta__date" datetime="2017-12-12T14:04:40+00:00">12th December 2017</time>
                    </div>
                    <h2 class="sh-effect--delta__title">Using CSS Counters</h2>
                    <div class="sh-effect--delta__meta">Posted in CSS</div>
                </div>
            </div>
            <img src="https://pineco.de/project/simple-hover/assets/images/photo-1488188840666-e2308741a62f.jpg" alt="" class="sh-effect--delta__image">
        </a>

        <a href="#" class="sh-container sh-effect--delta">
            <div class="sh-effect--delta__overlay">
                <div class="sh-effect--delta__overlay-inside">
                    <div class="sh-effect--delta__author-meta">
                        <img src="https://secure.gravatar.com/avatar/511c68b33bbb4e963fb2605fcef8a5fb?s=96&amp;d=mm&amp;r=g" alt="Gergo D. Nagy" originals="96" scale="1.25" class="sh-effect--delta__avatar">
                        <time class="sh-effect--delta__date" datetime="2017-12-05T06:00:16+00:00">5th December 2017</time>
                    </div>
                    <h2 class="sh-effect--delta__title">Simple PDF Rendering with Laravel</h2>
                    <div class="sh-effect--delta__meta">Posted in Laravel</div>
                </div>
            </div>
            <img src="https://pineco.de/project/simple-hover/assets/images/photo-1454372182658-c712e4c5a1db.jpg" alt="" class="sh-effect--delta__image">
        </a>
    </div>
    <div class="col">
        <a href="#" class="sh-container sh-effect--delta">
            <div class="sh-effect--delta__overlay">
                <div class="sh-effect--delta__overlay-inside">
                    <div class="sh-effect--delta__author-meta">
                        <img src="https://secure.gravatar.com/avatar/fd9479a898c593601efd2fe758a86dba?s=96&d=mm&r=g" alt="Adam Laki" originals="96" scale="1.25" class="sh-effect--delta__avatar">
                        <time class="sh-effect--delta__date" datetime="2017-11-28T07:00:07+00:00">28th November 2017</time>
                    </div>
                    <h2 class="sh-effect--delta__title">Better Date Format with &lt;time&gt; Element</h2>
                    <div class="sh-effect--delta__meta">Posted in HTML</div>
                </div>
            </div>
            <img src="https://pineco.de/project/simple-hover/assets/images/photo-1504711988183-b5f6f0b1cb8a.jpg" alt="" class="sh-effect--delta__image">
        </a>

        <a href="#" class="sh-container sh-effect--delta">
            <div class="sh-effect--delta__overlay">
                <div class="sh-effect--delta__overlay-inside">
                    <div class="sh-effect--delta__author-meta">
                        <img src="https://secure.gravatar.com/avatar/511c68b33bbb4e963fb2605fcef8a5fb?s=96&amp;d=mm&amp;r=g" alt="Gergo D. Nagy" originals="96" scale="1.25" class="sh-effect--delta__avatar">
                        <time class="sh-effect--delta__date" datetime="2017-11-21T06:00:09+00:00">21st November 2017</time>
                    </div>
                    <h2 class="sh-effect--delta__title">Handy Validation Rules in Laravel</h2>
                    <div class="sh-effect--delta__meta">Posted in Laravel</div>
                </div>
            </div>
            <img src="https://pineco.de/project/simple-hover/assets/images/photo-1506884090132-b170fbdb36d1.jpg" alt="" class="sh-effect--delta__image">
        </a>
    </div>
</div>
            
          
!
            
              
body {
    font-family: 'Roboto Mono', monospace;
    background: #353535;
    line-height: 1.6em;
}

.container {
    display: flex;
    max-width: 1000px;
    flex-wrap: wrap;
    padding-bottom: 30px;

    @media (min-width: 690px) {
    	margin-left: 10px;
    	margin-right: 10px;
    }
    
    @media (min-width: 992px) {
        flex-wrap: nowrap;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.col {
    margin: 15px 15px 0;
    width: 100%;

    @media (min-width: 690px) {
        width: calc(50% - 20px);
        margin: 20px 10px 0;
    }

    @media (min-width: 992px) {
    	width: 50%;
    	margin: 30px 15px 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sh-container {
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    backface-visibility: hidden;
    
    &:not(:last-child) {
        margin-bottom: 15px;

        @media (min-width: 690px) {
            margin-bottom: 20px;
        }
        
        @media (min-width: 992px) {
             margin-bottom: 30px;
        }
    }
}

.sh-effect--delta {
    &::before {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(to bottom, #e80202 0%,#f578d4 100%);
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 5;
    }
    
    &::after {
        content: '';
        position: absolute;
        display: block;
        right: 0;
        bottom: 0;
        left: 0;
        height: 70%;
        opacity: 0.3;
        background: linear-gradient(to bottom, rgba(125,185,232,0) 0%,rgba(1,2,2,1) 99%,rgba(0,0,0,1) 100%);
    }
    
    &:hover {
        .sh-effect--delta__overlay {
            transform: translate3d(0,0,0) scale(1);
            opacity: 1;
            transition: 0.2s ease;
        }
        
        .sh-effect--delta__meta {
            transition: 0.2s ease;
        }
        
        .sh-effect--delta__image {
            transform: scale(1.25) translate3d(0,0,0);
            transition: 0.2s ease;
        }
        
        &::before {
            opacity: 0.5;
            visibility: visible;
            transition: opacity 0.2s ease;
        }
    }
    
    &__image {
        transform: scale(1.2);
        transition: transform 0.2s ease;
    }

    &__overlay {
        color: #fff;
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: 20px;
        left: 20px;
        z-index: 10;
        transform: scale(0.8);
        opacity: 0;
        transition: 0.2s ease;
        color: #fff;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        
        @media (min-width: 1200px) {
            padding: 25px 30px;
        }
    }
    
    &__overlay-inside {
        padding: 20px;
        text-align: center;
        
        @media (min-width: 1200px) {
            padding: 40px;
        }
    }

    &__title {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        transition: 0.2s ease;
        
        @media (min-width: 1200px) {
            font-size: 21px;
        }
    }
    
    &__meta {
        color: rgba(255,255,255,0.7);
        transition: 0.2s ease;
        font-size: 12px;
        position: relative;
        z-index: 20;
        padding: 5px 0 0 0;
        margin-top: 5px;
        
        @media (min-width: 1200px) {
            font-size: 16px;
            padding: 5px 0 0 0;
        }
    }
    
    &__author-meta {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 15;
        margin-bottom: 10px;
    }
    
    &__avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 15px;
        
        @media (min-width: 1200px) {
            width: 40px;
            height: 40px;
        }
    }
    
    &__date {
        font-size: 11px;
        color: #fff;
        text-shadow: 0 0 4px rgba(0,0,0,0.2);
        
        @media (min-width: 1200px) {
            font-size: 13px;
        }
    }
}
            
          
!
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