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

              
                <div id="pre-loader">
        <div class="loadingGraphics">
            <svg class="drone" x="0" y="0" width="300" height="300" viewBox="-55 -40 450 420">             
                <path fill="#888" d="M325.2 159.8l-0.1 0c0 0-3.3-0.5-6.4-0.1 -6.3 0.7-11.6 3.2-14.9 5.1 -1.6 0.9-2.6 1.6-2.9 1.8h-54.3v-21.5c1.6-1.1 2.6-2.9 2.6-4.9 0-2-1-3.8-2.6-4.9v-2.7H240v2.7c-1.6 1.1-2.6 2.9-2.6 4.9 0 2 1 3.8 2.6 4.9v21.5H201V148c0-2.8-1.8-5.4-4.6-7.6l0 0 46.8-82.7c0.4-0.2 1.5-0.7 3-1.6 3.3-2 8-5.5 11.8-10.5 2.1-2.8 3.1-5.7 3.1-5.7 1.9-6.5-0.9-14-4.6-16.3l-0.4-0.2c-2.6-1.7-11.5-2-16.6 4.3 0 0-2 2.3-3.2 5.6 -2.4 5.7-2.9 11.6-2.9 15.5 0 2.2 0.2 3.5 0.2 3.6l0 0.3 0.4 0.2 -43.5 76.8v-19.9c0-1.7-1.4-3.1-3.1-3.1 -1.7 0-3.1 1.4-3.1 3.1v24.2c-7.8-3-12.8-3.9-15.6-3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-1.7-1.8-3.4-2.6-4.9 -1.9-3.4-1.4-8.3-1.4-8.3l0.1-0.8 -0.8-0.2c-0.3-0.1-2.7-0.7-2.7-3.6 0-3 2.4-3.6 2.7-3.6l0.7-0.1V177H240V193.5z"/>
                <path class="blade" fill="#999" d="M325.3 183.1c4.8-1.3 8.3-5.7 8.3-10.9 0-5.1-3.4-9.5-8.2-10.9 0.5-2.8 2.7-17.4 1.7-32.8 -1.2-17.1-2-21.7-4.3-23.6 -0.7-0.6-1.5-1-2.2-1 -2.5 0-4.2 3.7-5.3 11.5 -1.8 12.4-3.5 27.9 0 37.2l3.3 8.8c-4.5 1.5-7.8 5.8-7.8 10.8 0 4.9 3.2 9.1 7.6 10.7 -0.4 2.3-2.8 17.2-1.7 33 1.2 17.1 2 21.7 4.3 23.6 0.7 0.6 1.5 1 2.2 1 2.5 0 4.2-3.7 5.3-11.5 1.8-12.4 3.5-27.9 0-37.2L325.3 183.1z"/>
                <path class="blade" fill="#999" d="M308 271c-0.5-0.2-1.1-0.3-1.7-0.3 -2.9 0-8 2-21 8.3 -14.3 6.9-26.1 16.4-27.9 17.8 -2-1.8-4.6-2.8-7.4-2.8 -2 0-3.9 0.5-5.6 1.5 -2.6 1.5-4.5 3.9-5.3 6.9 -0.5 1.7-0.5 3.5-0.2 5.2l-9.3 1.5c-9.8 1.6-22.5 10.7-32.4 18.4 -5.4 4.3-7.9 7.4-7.6 9.5 0.2 1 0.9 1.7 2.2 2.2 0.5 0.2 1.1 0.3 1.7 0.3 2.9 0 8-2 21-8.3 13.9-6.7 25.5-15.9 27.7-17.7 2.1 2 4.9 3.2 7.9 3.2 2 0 3.9-0.5 5.6-1.5 2.6-1.5 4.5-3.9 5.3-6.9 0.5-1.9 0.5-3.9 0-5.8l9.2-1.5c9.8-1.6 22.5-10.7 32.4-18.4 5.4-4.3 7.9-7.4 7.6-9.5C310 272.2 309.2 271.5 308 271z"/>
                <path class="blade" fill="#999" d="M140.3 327.8c-9.9-7.7-22.6-16.8-32.4-18.3l-9.3-1.5c0.3-1.7 0.3-3.5-0.2-5.2 -0.8-2.9-2.7-5.4-5.3-6.9 -1.7-1-3.6-1.5-5.6-1.5 -2.8 0-5.4 1-7.4 2.8 -1.7-1.4-13.6-10.9-27.9-17.8 -13-6.2-18.1-8.2-21-8.2 -0.6 0-1.2 0.1-1.7 0.3 -1.3 0.5-2 1.2-2.2 2.2 -0.3 2.2 2.1 5.3 7.6 9.5 9.9 7.7 22.6 16.8 32.4 18.3l9.2 1.4c-0.5 1.9-0.5 3.9 0.1 5.8 0.8 2.9 2.7 5.4 5.3 6.9 1.7 1 3.6 1.5 5.6 1.5 3 0 5.8-1.2 7.9-3.2 2.2 1.8 13.8 11 27.7 17.6 13 6.2 18.1 8.2 21 8.2 0.6 0 1.2-0.1 1.7-0.3 1.3-0.5 2-1.2 2.2-2.2C148.3 335.1 145.8 332 140.3 327.8z"/>
                <path class="blade" fill="#999" d="M19 161.4l3.3-8.8c3.5-9.3 1.8-24.8 0-37.2 -1.1-7.7-2.9-11.5-5.4-11.5 -0.7 0-1.4 0.3-2.2 1 -2.3 1.9-3.1 6.6-4.3 23.6 -1 15.4 1.2 30 1.7 32.8 -4.7 1.4-8.2 5.7-8.2 10.9 0 5.2 3.5 9.6 8.4 10.9l-3.3 8.7c-3.5 9.3-1.8 24.8 0 37.2 1.1 7.7 2.9 11.5 5.4 11.5 0.7 0 1.4-0.3 2.2-1 2.3-1.9 3.1-6.6 4.3-23.6 1.1-15.8-1.3-30.8-1.7-33 4.4-1.6 7.6-5.8 7.6-10.7C26.8 167.1 23.5 162.9 19 161.4z"/>
                <path class="blade" fill="#999" d="M146.3 2.1c-1.5-1.8-5.5-1.3-12.4 1.4 -11.7 4.6-26 10.8-32.3 18.5l-5.9 7.1c-2.1-2.1-5-3.3-8-3.3 -2 0-3.9 0.5-5.6 1.5 -4.5 2.5-6.5 7.7-5.4 12.5 -2.7 1-16.5 6.3-29.3 14.8C33 64 29.4 67 28.8 69.9c-0.2 1.1-0.1 2 0.5 2.7 0.6 0.7 1.6 1.1 3 1.1h0c2.1 0 5.3-0.8 9.4-2.4 11.7-4.6 26-10.8 32.3-18.5l6.1-7.3c2.1 1.9 4.7 2.9 7.6 2.9 2 0 3.9-0.5 5.6-1.5 4.3-2.4 6.4-7.3 5.5-11.9 2.1-0.8 16.3-6.1 29.5-14.9 14.3-9.5 17.9-12.5 18.4-15.4C147 3.7 146.8 2.8 146.3 2.1z"/>
                <path class="blade" fill="#999" d="M307.9 69c-0.6-2.9-4.2-5.9-18.5-15.4C276.5 45.2 262.7 39.9 260 39c1.1-4.8-1-9.9-5.5-12.5 -1.7-1-3.6-1.5-5.6-1.5 -3.1 0-5.9 1.2-8.1 3.3l-5.9-7.1c-6.4-7.6-20.7-13.8-32.4-18.4 -6.8-2.7-10.9-3.1-12.4-1.3 -0.5 0.6-0.7 1.6-0.5 2.7 0.6 2.9 4.2 5.9 18.5 15.4 13.2 8.7 27.4 14 29.6 14.8 -0.3 1.6-0.2 3.3 0.2 5 0.8 2.9 2.7 5.4 5.3 6.9 1.7 1 3.6 1.5 5.6 1.5 2.9 0 5.6-1.1 7.6-3l6.1 7.3c6.4 7.6 20.7 13.8 32.4 18.4 4.1 1.6 7.2 2.4 9.4 2.4 1.4 0 2.4-0.4 3-1.1C308 71.1 308.1 70.2 307.9 69z"/>
            </svg>
            <p class="loadingText">loading</p>
        </div>
    </div>
              
            
!

CSS

              
                #pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f1f1f1;
    width: 100%;
    height: 100%;
}
.loadingGraphics {
    display: inline-block;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}
.drone {
    width: 300px;
    height: 300px;
}
.blade {
    
}
.loadingText {
    font-family: sans-serif;
    font-size: 2em;
    color: #999;
    text-transform: uppercase;
    text-align: center;
}
              
            
!

JS

              
                var spin = new TimelineMax();
var loading = new TimelineMax({
    repeat: -1
});

spin.to($('.blade'), 0.6, {
    rotation: 360,
    repeat: -1,
    transformOrigin: '50% 50%',
    ease: Linear.easeNone
});

loading.to($('.loadingText'), 1, {
        opacity: 0,
        ease: Linear.easeNone
    })
    .to($('.loadingText'), 1, {
        opacity: 1,
        ease: Linear.easeNone
    });

// example js to make a fade out when the page is done loading
/* $(window).load(function() {
		$(".se-pre-con").fadeOut("slow");;
	}); */
              
            
!
999px

Console