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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <div class="wrap">
   <div class="row"><input></div>
   <div class="row"><input></div>
   <div class="row"><textarea></textarea></div>
   <div class="row"><button type="button">시제출</button></div>
   <div class="row"><canvas id="c"></canvas></div>
   <div class="flex">
      <div class="flex-item"><img src="" alt=""></div>
      <div class="flex-item"><img src="" alt=""></div>
      <div class="flex-item"><img src="" alt=""></div>
      <div class="flex-item"><label><input type="file" id="file"><span>파일첨부</span></label></div>


                body { margin: 0; }
.wrap { padding: 1em }
input, textarea { width:100%; padding: 1em 1em 0.75em; font:inherit; box-sizing:border-box; border-width:0 0 1px; border-color:#eee; outline: none; resize:none }
input:focus { border-color:#2ac1bc }
button { width:100%; padding:1em; margin:1em 0; font:inherit; box-sizing:border-box; background: #fff; border: 1px solid #eee; outline: none }
button:active, button:hover { background:#2ac1bc; color:#fff }
button:active { font-weight:bold }
canvas { width: 100% }
.flex { overflow-y: auto; display: flex; }
.flex-item { position: relative; min-width: 240px; height: 360px; overflow: hidden }
.flex-item img { height: 100% }
.flex-item label { position:relative; display: block; background:#2ac1bc; color:#fff; height:100%; padding-top:100%; box-sizing:border-box; text-align: center }
.flex-item label::before { content: '+'; position: absolute; left:50%; top:50%; transform:translate(-50%, -50%); color: white; font-size:10em; font-weight:100 }
.flex-item label input { position: absolute; left: -9999px; }



                var canvas = new fabric.Canvas('c');
      canvas.setWidth(window.innerWidth - 32);

      var text = new fabric.Text('조은은\n바보qweqweqwe다', { 
        fontFamily: 'hanna',
        left: 100, 
        top: 100 

      text.setText('hello world');


        isGestureEvent = true;      
        var lPinchScale = event.self.scale;  
        var scaleDiff = (lPinchScale -1)/10 + 1;  // Slow down zoom speed    

      var fileInput = document.getElementById('file');
      fileInput.addEventListener("change", addImage, false);

      var imgInstance;

      function addImage() {
        var fileList = this.files;
        var file = fileList[0];

        var img = document.createElement("img");
        img.file = file;

        var reader = new FileReader();
        reader.onload = (function(oImg) { 
          return function(e) { 
            oImg.src =; 
            imgInstance = new fabric.Image(oImg, {
              left: 100,
              top: 100,