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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                 <h1 class="text">
        <span class="letter letter-1">N</span>
        <span class="letter letter-2">E</span>
        <span class="letter letter-3">O</span>
        <span class="letter letter-4">N</span>
    </h1>

              
            
!

CSS

              
                $prime: #FF6E48
$second: #1b2431

@font-face
    font-family: "Liberty"
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/907368/liberty.otf')

body, html
    margin: 0
    padding: 0
    width: 100%
    height: 100%

*
    box-sizing: border-box

body
    background-color: $second
    font-size: 10px
    display: flex
    flex-flow: column
    justify-content: center
    align-items: center

    .text
        font-family: 'Liberty'
        font-weight: 100
        font-size: 7rem
        letter-spacing: -0.25em
        flex-flow: row

        .letter
            color: #d9fdff
            text-shadow: 0 0 2rem #00f0ff
            display: inline-block

            &.letter-2
                transform: translate(-0.2rem, 1rem) rotate(10deg)
                animation: flicker 2s ease-in-out infinite alternate

@keyframes flicker
    0%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    5%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    5.5%
        opacity: 0
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    6%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    6.5%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    7%
        opacity: 0
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    8%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
    50%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(13deg)
    100%
        opacity: 1
        transform: translate(-0.2rem, 1rem) rotate(10deg)
              
            
!

JS

              
                
              
            
!
999px

Console