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.


                <ol id="slippylist">
    <li class="demo-no-reorder">これは移動できない</li>
    <li class="demo-no-swipe">長押しで移動できるけどスワイプ不可</li>
    <li class="demo-no-swipe demo-no-reorder">両方とも禁止</li>


                .slip-reordering {
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);

.slip-swiping-container {
    overflow-x: hidden;

#slippylist li {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    cursor: grab;

/* the rest is junk for the demo page */
#slippylist li.demo-allow-select {
    padding: 1em;
    line-height: 1.3;
    user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
#slippylist li.demo-allow-select span {
    cursor: text;

body {
    background: #eee;
    font-family: Helvetica, Arial, sans-serif;
    max-width: 40em;
    margin: 0 auto;
    padding: 5px;

#slippylist {
    margin: 1em;
    padding: 0 0 1px;

#slippylist li {
    border: 1px solid black;
    background: white;
    margin: 0; padding: 0 1em;
    border-radius: 10px;
    margin-bottom: -1px;
    max-width: 100%;
    line-height: 3;
    vertical-align: middle;

#slippylist input {
    vertical-align: middle;

#slippylist .instant::after {
    content: " \2261";
#slippylist .instant {
    float: right;

.demo-no-swipe.demo-no-reorder {
    opacity: 0.5;

h1, h2 {
    color: #666;
h1 {
    float:left; margin-top: 0; margin-right: 1ex;
h1+p {
    overflow:auto; margin-top: 0.2em;


                var ol = document.getElementById('slippylist');
    ol.addEventListener('slip:beforereorder', function(e){
        if (/demo-no-reorder/.test( {
    }, false);

    ol.addEventListener('slip:beforeswipe', function(e){
        if ( == 'INPUT' || /demo-no-swipe/.test( {
    }, false);

    ol.addEventListener('slip:beforewait', function(e){
        if ('instant') > -1) e.preventDefault();
    }, false);

    ol.addEventListener('slip:afterswipe', function(e){;
    }, false);

    ol.addEventListener('slip:reorder', function(e){, e.detail.insertBefore);
        return false;
    }, false);

    new Slip(ol);