123

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.

            
              <!-- https://cras.sh/ -->

<!--打开下面这段注释代码-->
<div class="crassh">HOVER ME</div>
            
          
!
            
              .crassh {
    width: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 32px;
    border: 1px solid #000;
    margin: 50px auto;
    /* border-width may be omitted by some engines if it doesn't have style(= not shown )                   */
    border-style: solid;
    
    
    cursor: pointer;

    &:hover,
    &:active{
        --initial-level-0: calc(1vh + 1% + 1px + 1em + 1vw + 1cm);
        /* Mixed constant */

        --level-1: calc(var(--initial-level-0) + var(--initial-level-0));
        /* 2 evaluations */

        --level-2: calc(var(--level-1) + var(--level-1));
        /* 4 evaluations */

        --level-3: calc(var(--level-2) + var(--level-2));
        /* 8 evaluations */

        --level-4: calc(var(--level-3) + var(--level-3));
        /* 16 evaluations */

        --level-5: calc(var(--level-4) + var(--level-4));
        /* 32 evaluations */

        --level-6: calc(var(--level-5) + var(--level-5));
        /* 64 evaluations */

        --level-7: calc(var(--level-6) + var(--level-6));
        /* 128 evaluations */

        --level-8: calc(var(--level-7) + var(--level-7));
        /* 256 evaluations */

        --level-9: calc(var(--level-8) + var(--level-8));
        /* 512 evaluations */

        --level-10: calc(var(--level-9) + var(--level-9));
        /* 1024 evaluations */

        --level-11: calc(var(--level-10) + var(--level-10));
        /* 2048 evaluations */

        --level-12: calc(var(--level-11) + var(--level-11));
        /* 4096 evaluations */

        --level-13: calc(var(--level-12) + var(--level-12));
        /* 8192 evaluations */

        --level-14: calc(var(--level-13) + var(--level-13));
        /* 16384 evaluations */

        --level-15: calc(var(--level-14) + var(--level-14));
        /* 32768 evaluations */

        --level-16: calc(var(--level-15) + var(--level-15));
        /* 65536 evaluations */

        --level-17: calc(var(--level-16) + var(--level-16));
        /* 131072 evaluations */

        --level-18: calc(var(--level-17) + var(--level-17));
        /* 262144 evaluations */

        --level-19: calc(var(--level-18) + var(--level-18));
        /* 524288 evaluations */

        --level-20: calc(var(--level-19) + var(--level-19));
        /* 1048576 evaluations */

        --level-21: calc(var(--level-20) + var(--level-20));
        /* 2097152 evaluations */

        --level-22: calc(var(--level-21) + var(--level-21));
        /* 4194304 evaluations */

        --level-23: calc(var(--level-22) + var(--level-22));
        /* 8388608 evaluations */

        --level-24: calc(var(--level-23) + var(--level-23));
        /* 16777216 evaluations */

        --level-25: calc(var(--level-24) + var(--level-24));
        /* 33554432 evaluations */

        --level-26: calc(var(--level-25) + var(--level-25));
        /* 67108864 evaluations */

        --level-27: calc(var(--level-26) + var(--level-26));
        /* 134217728 evaluations */

        --level-28: calc(var(--level-27) + var(--level-27));
        /* 268435456 evaluations */

        --level-29: calc(var(--level-28) + var(--level-28));
        /* 536870912 evaluations */

        --level-30: calc(var(--level-29) + var(--level-29));
        /* 1073741824 evaluations */

        --level-final: calc(var(--level-30) + 1px);
        /* 1073741824 evaluations */

        /* ^ these are not evaluated automatically in some engines -> we have to use them somewhere             */

        border-width: var(--level-final); /* <- use the computed value   */
    }
}
            
          
!
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