Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

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


Auto Save

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.




<link rel="stylesheet" href="">

<script type="text/javascript" src=""></script>



<div class="wrapper" style="visibility:hidden; opacity:0" >DROP HERE</div>

<form action="/upload" class="dropzone" id="dropzone">
    <div class="dz-message ">
      <span class="text">
      Drop files here or click to upload + 



                .wrapper {
    background: #39E2B6;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
    text-align: center;
    left: 0;
    font-size: 100px;
    font-family: calibri;
    color: white;
    line-height: 100vh;

.dropzone {
  width: 50%;
  margin: 1%;
  border: 2px dashed #3498db !important;
  border-radius: 5px;


                //to enable full window
var lastTarget = null;

window.addEventListener("dragenter", function(e){ // drag start
    // unhide our red overlay
    lastTarget =; // cache the last target here

window.addEventListener("dragleave", function (e) { // user canceled

    if( === lastTarget || === document)


window.addEventListener("dragover", function (e) { //to stop default browser act

window.addEventListener("drop", function(e){


    // if drop, we pass object file to dropzone
    var myDropzone = Dropzone.forElement(".dropzone");


function hideWrapper() {
    document.querySelector(".wrapper").style.visibility = "hidden";
    document.querySelector(".wrapper").style.opacity = 0;

function showWrapper() {
    document.querySelector(".wrapper").style.visibility = "";
    document.querySelector(".wrapper").style.opacity = 0.5;