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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                      <h1>HOVER PLEASE!</h1>
        <div class="frame">
            <div class="cont-1 ani">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit sed elit vitae pulvinar. Duis volutpat mollis aliquet. Quisque nulla libero, ullamcorper non sodales in, tempus ac est. Aliquam vestibulum orci suscipit rutrum finibus. Morbi id volutpat ante. Curabitur dapibus feugiat tellus. In hac habitasse platea dictumst. Duis et rutrum sem, non commodo lectus. Aenean placerat ligula sed velit aliquam, vitae fringilla mi sagittis. Vestibulum fermentum tincidunt orci, vel rhoncus purus dapibus ut. In convallis vel felis sed dictum. Praesent rutrum libero velit, ut hendrerit libero sodales a. Donec varius eros nisl, ut faucibus massa tristique sit amet.</p>
            </div>
            
            <div class="cont-2 ani">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit sed elit vitae pulvinar. Duis volutpat mollis aliquet. Quisque nulla libero, ullamcorper non sodales in, tempus ac est. Aliquam vestibulum orci suscipit rutrum finibus. Morbi id volutpat ante. Curabitur dapibus feugiat tellus. In hac habitasse platea dictumst. Duis et rutrum sem, non commodo lectus. Aenean placerat ligula sed velit aliquam, vitae fringilla mi sagittis. Vestibulum fermentum tincidunt orci, vel rhoncus purus dapibus ut. In convallis vel felis sed dictum. Praesent rutrum libero velit, ut hendrerit libero sodales a. Donec varius eros nisl, ut faucibus massa tristique sit amet.</p>
            </div>
        </div>
        <div class="frame">
            <div class="cont-3">
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur hendrerit sed elit vitae pulvinar. Duis volutpat mollis aliquet. Quisque nulla libero, ullamcorper non sodales in, tempus ac est. Aliquam vestibulum orci suscipit rutrum finibus. Morbi id volutpat ante. Curabitur dapibus feugiat tellus. In hac habitasse platea dictumst. Duis et rutrum sem, non commodo lectus. Aenean placerat ligula sed velit aliquam, vitae fringilla mi sagittis. Vestibulum fermentum tincidunt orci, vel rhoncus purus dapibus ut. In convallis vel felis sed dictum. Praesent rutrum libero velit, ut hendrerit libero sodales a. Donec varius eros nisl, ut faucibus massa tristique sit amet.</p>
            </div>
        </div>
            
          
!
            
              /* just a simple sketch, playing around */

*,
*:before,
*:after { box-sizing: border-box; }

body { background: #DDD; }

.frame {
    display: table;
    width: 80%;
    height: auto;
    top: 150px;
    padding: 0;
    margin: auto;
    margin-bottom: 2%;

    background: #ccc;
    font-size: 22px;
    text-align: center;

    -webkit-perspective: 2000px;
            perspective: 2000px;
    }

.cont-1 {
    display: inline-table;
    width: 40%;
    height: 100%;
    margin: 0;
    padding: 2%;

    background: #7EB575 linear-gradient(to bottom, #7EB575, #6AA95F);
    border-bottom-left-radius: 10px;
    box-shadow:
        0 5px 0 #34562E,
        0 0 20px #34562E inset,
        0 20px 10px rgba(0,0,0,.5);
    
    -webkit-transform: rotateX(45deg);
            transform: rotateX(45deg);

    color: #1D2F1A;
    text-shadow:
        0 1px 0 #34562E,
        0 2px 0 #34562E,
        0 0 3px white;

    transition: 1s;
    }

.cont-1:hover {
    transition: .35s;
    -webkit-transform: rotateX(25deg);
            transform: rotateX(25deg); 
    
    box-shadow:
        0 2px 0 #34562E,
        0 0 20px #34562E inset,
        0 5px 5px rgba(0,0,0,.25);
    }

.cont-2 {
    display: inline-table;
    width: 60%;
    height: 100%;
    margin: 0;
    padding: 2%;

    background: #CFC1A9 linear-gradient(to bottom, #CFC1A9, #BFAD8E);
    box-shadow:
        0 5px 0 #7D7262,
        0 0 20px #7D7262 inset,
        0 20px 10px 0 rgba(0,0,0,.5);
    border-bottom-right-radius: 10px;
    color: #464037;
    text-shadow:
        0 1px 0 #7D7262,
        0 2px 0 #7D7262,
        0 0 3px white;
    
    -webkit-transform: rotateX(45deg);
            transform: rotateX(45deg);

    transition: 1s;
    }

.cont-2:hover {
    transition: .35s;
    -webkit-transform: rotateX(25deg);
            transform: rotateX(25deg); 

    box-shadow:
        0 2px 0 #7D7262,
        0 0 20px #7D7262 inset,
        0 5px 5px rgba(0,0,0,.25);
    }

.cont-3 {
    display: block;
    width: 50%;
    margin: 2% auto;

    font-size: 16px;
    
    background: #454661;
    border-radius: 10px;
    box-shadow:
        0 5px 0 #222231,
        0 0 20px #222231 inset,
        0 20px 10px 0 rgba(0,0,0,.5);
    padding: 2%;
    color: white;
    
    -webkit-transform: scale(.5) rotateX(25deg) rotateY(-180deg);
            transform: scale(.5) rotateX(25deg) rotateY(-180deg);
    
    transition: 2s;
    
    }

.cont-3:hover {
    transition: 1s;
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    box-shadow:
        0 5px 0 #222231,
        0 0 20px #222231 inset,
        0 5px 5px 0 rgba(0,0,0,.25);
    }
            
          
!
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.

Console