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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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="demo">
    <div class="demo-card">
        <a href="#" class="demo-card-image-holder"><img src="//placehold.it/300x200" alt=""></a>
        <div class="demo-card-txt">
            <h3 class="demo-card-title"><a href="#" class="link demo-card-link">Pointer-events: none</a></h3>
            <p class="demo-card-descr"><strong>Выдели меня курсором.</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Impedit ullam minus a ipsum eum rerum eaque maxime amet beatae modi qui incidunt voluptas quis maiores quos autem inventore! Mollitia praesentium. Impedit ullam minus a ipsum eum rerum eaque maxime amet beatae modi qui incidunt voluptas quis maiores quos autem inventore!</p>
        </div>
        <span class="demo-card-overlay" style="pointer-events:none;"><!--gradient overlay--></span>
    </div>
    <div class="demo-card">
        <a href="#" class="demo-card-image-holder"><img src="//placehold.it/300x200" alt=""></a>
        <div class="demo-card-txt">
            <h3 class="demo-card-title"><a href="#" class="link demo-card-link">Pointer-events: auto</a></h3>
            <p class="demo-card-descr"><strong>Выдели меня курсором.</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Impedit ullam minus a ipsum eum rerum eaque maxime amet beatae modi qui incidunt voluptas quis maiores quos autem inventore! Mollitia praesentium. Impedit ullam minus a ipsum eum rerum eaque maxime amet beatae modi qui incidunt voluptas quis maiores quos autem inventore!</p>
        </div>
        <span class="demo-card-overlay"><!--gradient overlay--></span>
    </div>
    <div class="clr"></div>
</div>

            
          
!
            
              /* sample 1 */

.demo {
    margin: 0 auto;
    max-width: 720px;
}

.demo-card {
    position: relative;
    width: 300px;
    padding: 19px;
    border: 1px solid #CCC;
    background: #FFF;
    float: left;
    margin: 0 20px 20px 0;
    font-size: 13px;
    overflow: hidden;
}
.demo-card-overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 150px;
    box-shadow:inset 0 -150px 150px -75px #FFF, inset 0 -150px 150px -75px #FFF;
}
.demo-card-descr {
    height: 110px;
    margin-bottom:0;
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console