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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <span class="doff">
    <span class="doff__hat">๐ŸŽฉ</span>
    <span class="doff__smile">๐Ÿ˜Š</span>
</span>

<hgroup class="title-unit">
    <h1>Good day friend</h1>
    <p><i>Welcome to my web home</i></p>
</hgroup>

<h3>My name is Gareth and I am a <strong>creative all-rounder</strong> based in Stafford, UK.</h3>

<p>I currently assemble things at <a href="https://www.valtech.co.uk/">Valtech</a>. I have previously worked on countless Magento &amp; WordPress projects at <a href="https://www.iweb.co.uk/work/" target="_blank">iWeb</a> as a Front-end designer. I occasionaly write about things <a href="https://medium.com/@gazjoy" target="_blank">over here</a>. Although it doesn't happen too often so don't hold your breath, I have two children keeping me super busy.</p>

<div class="reverse-block">
    <div class="doff">๐Ÿคน</div>
<hgroup class="title-unit">
<h3>Currently Juggling</h3>
<p>I am currently working on:</p>
</hgroup>

<ul class="u-list-indent">
    <li>๐Ÿ“ฃ A CSS Grid Talk</li>
    <li>๐Ÿ“ฃ A Pattern Library Talk</li>
    <li>๐Ÿ”” An Accessibility Blog Post</li>
</ul>
</div>

<p>If you want to chat I suggest following me on <a title="Follow Me on Twitter" href="https://twitter.com/gazjoy" target="_blank">Twitter</a> or <a href="https://github.com/gazjoy" target="_blank">Git</a> me up. I can also meet you in person if you want a face to face chat? Stafford has some <a href="http://www.joulesbrewery.co.uk/pubs/pub_details.php?id=25" title="Link to Ye Olde Rose & Crown Pub Website">great public houses</a>.</p>
              
            
!

CSS

              
                .doff,
.doff__hat,
.doff__smile {
    position: relative;
}

.doff {
    float: right;
    font-size: 2em;
    top: 0;
    
    &:hover {
        cursor: hand;
    }
}

.doff__hat {
    position: absolute;
    z-index: 1;
    top: -.6em;
    transition: all .6s;
    transform-origin: 100% 100%;
}

body:hover {
    .doff__hat {
        top: -.8em;
        transform: rotate(25deg);
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console