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.


                <link href="^2/dist/tailwind.min.css" rel="stylesheet">
    <div class="w-full h-screen flex flex-row flex-nowrap py-4 flex-grow">

        <!-- ----------- -->
        <!-- Left Column -->
        <!-- ----------- -->

        <div class="w-fixed flex-shrink flex-grow-0">
            <div class="flex flex-col px-2">

                <!-- Column 1 Container Inner -->
                <div class="bg-gray-200 rounded-xl border border-gray-900 mb-3 w-full">
                    <div class="mx-auto py-4 flex items-center flex-col">
                        <p class="text-center">Add Panel:</p>
                        <button id="create-new-existing-panel" class="btn rounded bg-gray-500 hover:bg-gray-400 font-bold py-2 px-3 border-2 border-gray-800 mt-2" >Existing</button>

        <!-- ---------- -->
        <!-- Map Column -->
        <!-- ---------- -->

        <main role="main" class="w-full flex-grow">

            <!-- Column 2 Map Content -->
            <div id="map" class="p-8 bg-green-900 rounded justify-center">
                <!-- Map Image -->
                <div class="w-max mx-auto">
    <script src=""></script>
    <script src=""></script>



                .panel {
    background-color: yellow;
    outline: solid black 0.5px;
    outline-offset: -1px;
    width: 80px;
    height: 20px;


                class PanelObject {
    constructor(x, y) {
      this.divElement = document.createElement('div');
    = 'panel';
      this.draggable = Draggable.create('#panel', {
			  bounds: "#map",
        inertia: true
      this.moveObjTo = (x, y) => {
        gsap.set(this.divElement, {x: x, y: y});
      this.moveObjTo(x, y);
  static createNewSingleArray(type, event) {
        let panelArray = new PanelObject(-32, -829);

const existingBtnElement = document.getElementById('create-new-existing-panel');

existingBtnElement.addEventListener('mousedown', event => {
    PanelObject.createNewSingleArray(this.type, event);
    // console.log('test');