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


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


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.


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.


    i.material-icons repeat

  h1 Animation
  h1 was
  h1 never
  h1 easy


                @import '|Material+Icons'

$bgColor = #b94949
$color = #391717

    margin: 0 auto
    width: 80%
    font-family: 'Special Elite', cursive
    background: $bgColor

    text-align: center
    line-height: .3em
    color: $bgColor

    text-align: center
    font-size: 4em

#controls i 
    border-radius: 100%
    border: .2em solid $color
    padding: .5em
    color: $color

#controls div:hover 
    cursor: pointer


                $( document ).ready( function () {
} );

function init() {

    var t = new TimelineMax(); "h1", .5, {
        color: "#391717",
        fontSize: "+=150",
        ease: Elastic.easeInOut
    } ).to( "h1", .1, {
        color: "#793030",
        ease: Linear.easeInOut
    } ).to( "h1", .1, {
        color: "#391717",
        ease: Elastic.easeInOut
    } );

    $( "#repeat" ).click( function () { 0 )
    } );