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.


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.


                ul.m"1"): img(src="//" alt="")"2"): img(src="//" alt="")"3"): img(src="//" alt="")"4"): img(src="//" alt="")"5"): img(src="//" alt="")"6"): img(src="//" alt="")
            div.front:  img(src="//" alt="")
            div.right:  img(src="//" alt="")
      img(src="//" alt="")
            div.left:   img(src="//" alt="")
            div.bottom: img(src="//" alt="")
            div.back:   img(src="//" alt="")



    background: #eee
    overflow: hidden

    display: block
    width: 232px
    height: 500px
    position: relative
    float: right
    padding: 0 30px 0 40px
    margin-top: 40px
    box-shadow: -10px 0 0 #D6D6D6

        display: block
        width:  100px
        height: 100px
        position: relative
        z-index: 1000
        float: left
        margin: 0 10px 10px 0
        border: solid 3px #55BFE2
        background-color: #55BFE2
        outline: none
        cursor: pointer

        &:focus img
            opacity: .3

        > img
            width:  100px
            height: 100px
            min-width:  100px
            min-height: 100px
            max-width:  100px
            max-height: 100px
            position: absolute
            left: 0
            top:  0
            transition: .3s

    width:  500px
    height: 500px
    position: absolute
    top: 0
    right: 400px
    perspective: 1000px

    width:  500px
    height: 500px
    position: absolute
    top:  0
    left: 0
    transform-style: preserve-3d
    transform: rotateX(0deg) translateZ(-250px)
    transition: 2s 9999999s

        width:  500px
        height: 500px
        position: absolute
        top:  0
        left: 0
        background-color: #222

        transform: rotateY(0deg) translateZ(250px)

        transform: rotateX(180deg) translateZ(250px)

        transform: rotateY(90deg) translateZ(250px)

        transform: rotateY(-90deg) translateZ(250px)

        transform: rotateX(90deg) translateZ(250px)

        transform: rotateX(-90deg) translateZ(250px)

        width:  100%
        height: 100%
        min-width:  100%
        min-height: 100%
        max-width:  100%
        max-height: 100%
        position: absolute
        left: 0
        top: 0

.li:focus ~ .cube-wrap .cube
    transition: 1.2s

.m1:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateY(0deg)

.m2:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateY(-90deg)

.m3:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateX(-90deg)

.m4:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateY(90deg)

.m5:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateX(90deg)

.m6:focus ~ .cube-wrap .cube
    transform: translateZ(-250px) rotateX(180deg)