Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <head><link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<div class="flex-grow p-4 relative flex overflow-hidden z-10"><!----> <div data-preview-toggler="" class="flex items-stretch space-x-2 absolute right-0 top-0 items-center z-20 m-1 sm:m-2"><!----> <!----></div> <div class="m-auto max-h-full max-w-full absolute inset-0 p-4 flex justify-center items-center opacity-0 z-10"><svg id="printable" viewBox="0 0 13.5 9.5" class="flex-1 max-w-full max-h-full h-full w-auto" style="transform: scale(0.833333);"><svg id="source" data-panes="" viewBox="0 0 12 8" class="flex-1 max-w-full max-h-full absolute bottom-0 right-0 z-40 opacity-100 w-full h-auto"><rect data-border="" x="0" y="0" width="12" height="8" fill=""></rect> <svg data-svg="" viewBox="0 0 12 8" x="0" y="0" width="12" height="8" style="touch-action: none;user-select: none;-webkit-user-drag: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);/* will-change: transform; */"><rect x="0" y="0" width="100%" height="100%" fill="#ffffff" style="
    will-change: transform;
"></rect> <image data-image="" width="12" height="8" x="0" y="0" data-pane="pane_1" data-translate-x="0" data-translate-y="0" data-scale="1" data-rotate="0" data-original="https://images.unsplash.com/photo-1635346245281-14201c7a768a?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1228&q=80" data-original-width="6720" data-original-height="4480" xlink:href="https://images.unsplash.com/photo-1635346245281-14201c7a768a?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1228&q=80" transform="translate(0 0) rotate(0 6 4) matrix(1.0000 0 0 1.0000 0.0000 0.0000)" preserveAspectRatio="xMidYMid slice" class="pane-image" style="
    will-change: transform;
"></image> <svg data-placeholder="" viewBox="0 0 12 8" class="cursor-pointer" style="display: none;"><rect width="12" height="8" fill="#ffffff"></rect> <svg viewBox="0 0 16 4" x="3" y="3.25" width="6" height="1.5"><rect x="0" y="0" rx=".25" ry=".25" width="16" height="4" class="fill-current text-blue-50"></rect> <svg viewBox="0 0 28 28" x=".75" y=".75" width="3" height="3" class="fill-current text-blue-500"><path d="M19 2h-14c-1.7 0-3 1.3-3 3v14c0 1.7 1.3 3 3 3h14c1.7 0 3-1.3 3-3v-14c0-1.7-1.3-3-3-3zM4 5c0-0.6 0.4-1 1-1h14c0.6 0 1 0.4 1 1v7.6l-3.3-3.3c-0.4-0.4-1-0.4-1.4 0l-10.6 10.6c-0.4-0.1-0.7-0.5-0.7-0.9v-14zM19 20h-11.6l8.6-8.6 4 4v3.6c0 0.6-0.4 1-1 1z"></path> <path d="M8.5 11c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5zM8.5 8c0.3 0 0.5 0.2 0.5 0.5s-0.2 0.5-0.5 0.5-0.5-0.2-0.5-0.5 0.2-0.5 0.5-0.5z"></path></svg> <text x="4.5" y="2.2" dominant-baseline="middle" font-size="1.9" class="fill-current text-blue-500">Select image</text></svg></svg></svg></svg> <svg id="printable-0" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" x="0" class="pointer-events-none"><rect x="0" y="0" width="13.5" height="9.5" fill="#000"></rect> <svg viewBox="0 0 12 8" width="12" height="8" x="0.75" y="0.75"><defs><clipPath id="path-0"><rect x="0" y="0" width="12" height="8" fill="#fff"></rect></clipPath></defs> <use xlink:href="#source" clip-path="url(#path-0)"></use></svg></svg></svg></div> <div class="flex flex-grow justify-center items-center z-0" style="transition: transform 1s cubic-bezier(0.49, 0.01, 0.2, 0.99) 0s; perspective: 200vmin; transform: scale(1); touch-action: auto; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><div class="flex relative justify-center items-center pt-5 sm:pt-0" style="width: 685px; height: 456.667px; transition: all 1s cubic-bezier(0.49, 0.01, 0.2, 0.99) 0s; perspective: 500vmin; transform-style: preserve-3d; transform: translateZ(-100px) rotateX(0deg) rotateY(25deg);"><div data-v-59ca31ec="" data-container="" class="flex relative w-full h-auto max-w-full preserve-3d" style="transform: scale(0.5);"><div data-v-59ca31ec="" data-wrapper="" class="absolute inset-0 pointer-events-none preserve-3d"><div data-v-59ca31ec="" data-shadow="" class="absolute inset-0 preserve-3d" style="display: none;"></div> <div data-v-59ca31ec="" data-background="" class="backface-hidden absolute preserve-3d" style="transform: rotateX(90deg) translateY(-9.375%) rotateX(-90deg); inset: 0%; box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 50px 25px, rgba(0, 0, 0, 0.25) 0px 0px 12.5px 6.25px, rgba(0, 0, 0, 0.2) 0px 0px 10000px inset;"></div> <div data-v-59ca31ec="" data-frame-top-inner="" class="backface-hidden absolute top-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; top: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-right-inner="" class="backface-hidden absolute right-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; right: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-bottom-inner="" class="backface-hidden absolute bottom-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; bottom: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-left-inner="" class="backface-hidden absolute left-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; left: 0%; display: none;"></div> <div data-v-59ca31ec="" data-mat-top="" class="backface-hidden absolute inset-x-0 top-0 preserve-3d" style="height: 0%; display: none;"></div> <div data-v-59ca31ec="" data-mat-right="" class="backface-hidden absolute inset-y-0 right-0 preserve-3d" style="width: 0%; display: none;"></div> <div data-v-59ca31ec="" data-mat-bottom="" class="backface-hidden absolute inset-x-0 bottom-0 preserve-3d" style="height: 0%; display: none;"></div> <div data-v-59ca31ec="" data-mat-left="" class="backface-hidden absolute inset-y-0 left-0 preserve-3d" style="width: 0%; display: none;"></div> <div data-v-59ca31ec="" data-edge-top="" class="backface-hidden absolute inset-x-0 top-0 preserve-3d" style="height: 9.375%;"><svg data-v-59ca31ec="" viewBox="0 0 12 0.75" preserveAspectRatio="xMidYMid slice"><svg data-v-59ca31ec="" x="-0.75" y="0" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" preserveAspectRatio="xMidYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="GradientTopDark" x1="0" x2="0" y1="0" y2="1"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.7" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.4" class="stop2"></stop></linearGradient> <linearGradient data-v-59ca31ec="" id="GradientTopLight" x1="0" x2="0" y1="0" y2="1"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.3" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.15" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="clip-edge-top-0"><rect data-v-59ca31ec="" x="0.75" y="0" width="12" height="0.75"></rect></clipPath></defs> <use data-v-59ca31ec="" xlink:href="#printable-0" clip-path="url(#clip-edge-top-0)"></use> <rect data-v-59ca31ec="" x="0.75" y="0" width="12" height="0.75" fill="url(#GradientTopLight)"></rect></svg></svg></div> <div data-v-59ca31ec="" data-edge-right="" class="backface-hidden absolute inset-y-0 right-0 preserve-3d" style="width: 6.25%;"><svg data-v-59ca31ec="" viewBox="0 0 0.75 8" preserveAspectRatio="xMidYMid slice"><svg data-v-59ca31ec="" x="-12.75" y="-0.75" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" preserveAspectRatio="xMidYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="GradientRightDark" x1="1" x2="0" y1="0" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.8" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.5" class="stop2"></stop></linearGradient> <linearGradient data-v-59ca31ec="" id="GradientRightLight" x1="1" x2="0" y1="0" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.4" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.2" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="clip-edge-right-0"><rect data-v-59ca31ec="" x="12.75" y="0.75" width="0.75" height="8"></rect></clipPath></defs> <use data-v-59ca31ec="" xlink:href="#printable-0" clip-path="url(#clip-edge-right-0)"></use> <rect data-v-59ca31ec="" x="12.75" y="0.75" width="0.75" height="8" fill="url(#GradientRightLight)"></rect></svg></svg></div> <div data-v-59ca31ec="" data-edge-bottom="" class="backface-hidden absolute inset-x-0 bottom-0 preserve-3d" style="height: 9.375%;"><svg data-v-59ca31ec="" viewBox="0 0 12 0.75" preserveAspectRatio="xMidYMid slice"><svg data-v-59ca31ec="" x="-0.75" y="-8.75" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" preserveAspectRatio="xMidYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="GradientBottomDark" x1="0" x2="0" y1="1" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.9" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.6" class="stop2"></stop></linearGradient> <linearGradient data-v-59ca31ec="" id="GradientBottomLight" x1="0" x2="0" y1="1" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.5" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.25" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="clip-edge-bottom-0"><rect data-v-59ca31ec="" x="0.75" y="8.75" width="12" height="0.75"></rect></clipPath></defs> <use data-v-59ca31ec="" xlink:href="#printable-0" clip-path="url(#clip-edge-bottom-0)"></use> <rect data-v-59ca31ec="" x="0.75" y="8.75" width="12" height="0.75" fill="url(#GradientBottomLight)"></rect></svg></svg></div> <div data-v-59ca31ec="" data-edge-left="" class="backface-hidden absolute inset-y-0 left-0 preserve-3d" style="width: 6.25%;"><svg data-v-59ca31ec="" viewBox="0 0 0.75 8" preserveAspectRatio="xMidYMid slice"><svg data-v-59ca31ec="" x="0" y="-0.75" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" preserveAspectRatio="xMidYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="GradientLeftDark"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.8" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.5" class="stop2"></stop></linearGradient> <linearGradient data-v-59ca31ec="" id="GradientLeftLight"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.5" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0.2" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="clip-edge-left-0"><rect data-v-59ca31ec="" x="0" y="0.75" width="0.75" height="8"></rect></clipPath></defs> <use data-v-59ca31ec="" xlink:href="#printable-0" clip-path="url(#clip-edge-left-0)"></use> <rect data-v-59ca31ec="" x="0" y="0.75" width="0.75" height="8" fill="url(#GradientLeftLight)"></rect></svg></svg></div> <div data-v-59ca31ec="" data-mat="" class="backface-hidden absolute preserve-3d" style="inset: 0%; display: none;"><svg data-v-59ca31ec="" viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid slice"><defs data-v-59ca31ec=""><mask data-v-59ca31ec="" id="mat"><rect data-v-59ca31ec="" x="0" y="0" width="12" height="8" fill="#fff"></rect> <rect data-v-59ca31ec="" x="0" y="0" width="12" height="8" fill="#000"></rect></mask></defs> <rect data-v-59ca31ec="" x="0" y="0" width="12" height="8" fill="#fff" mask="url(#mat)"></rect></svg> <div data-v-59ca31ec="" class="absolute inset-0" style="box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 40px 0px inset, rgba(0, 0, 0, 0.4) 0px 0px 20px 0px inset;"></div></div> <div data-v-59ca31ec="" class="absolute top-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; top: 0%; display: none;"><svg data-v-59ca31ec="" viewBox="0 0 12 0" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="ShadingTop" x1="0" x2="0" y1="0" y2="1"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.03" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="frame-top"><path data-v-59ca31ec="" d="M 0 0 L 12 0 L 12 0 L 0 0 Z"></path></clipPath></defs> <rect data-v-59ca31ec="" data-frame-top="" x="0" y="0" width="12" height="0" clip-path="url(#frame-top)" fill=""></rect> <rect data-v-59ca31ec="" x="0" y="0" width="12" height="0" clip-path="url(#frame-top)" fill="url(#ShadingTop)"></rect></svg></div> <div data-v-59ca31ec="" class="absolute right-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; right: 0%; display: none;"><svg data-v-59ca31ec="" viewBox="0 0 0 8" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="ShadingRight" x1="1" x2="0" y1="0" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.03" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="frame-right"><path data-v-59ca31ec="" d="M 0 0 L 0 8 L 0 8 L 0 0 Z"></path></clipPath></defs> <rect data-v-59ca31ec="" x="0" y="0" width="0" height="8" clip-path="url(#frame-right)" fill=""></rect> <rect data-v-59ca31ec="" x="0" y="0" width="0" height="8" clip-path="url(#frame-right)" fill="url(#ShadingRight)"></rect></svg></div> <div data-v-59ca31ec="" class="absolute bottom-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; bottom: 0%; display: none;"><svg data-v-59ca31ec="" viewBox="0 0 12 0" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="ShadingBottom" x1="0" x2="0" y1="1" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.03" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="frame-bottom"><path data-v-59ca31ec="" d="M 0 0 L 12 0 L 12 0 L 0 0 Z"></path></clipPath></defs> <rect data-v-59ca31ec="" x="0" y="0" width="12" height="0" clip-path="url(#frame-bottom)" fill=""></rect> <rect data-v-59ca31ec="" x="0" y="0" width="12" height="0" clip-path="url(#frame-bottom)" fill="url(#ShadingBottom)"></rect></svg></div> <div data-v-59ca31ec="" class="absolute left-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; left: 0%; display: none;"><svg data-v-59ca31ec="" viewBox="0 0 0 8" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMid slice"><defs data-v-59ca31ec=""><linearGradient data-v-59ca31ec="" id="ShadingLeft" x1="0" x2="1" y1="0" y2="0"><stop data-v-59ca31ec="" offset="0%" stop-color="#000" stop-opacity="0.03" class="stop1"></stop> <stop data-v-59ca31ec="" offset="100%" stop-color="#000" stop-opacity="0" class="stop2"></stop></linearGradient> <clipPath data-v-59ca31ec="" id="frame-left"><path data-v-59ca31ec="" d="M 0 0 L 0 0 L 0 8 L 0 8 Z"></path></clipPath></defs> <rect data-v-59ca31ec="" x="0" y="0" width="0" height="8" clip-path="url(#frame-left)" fill=""></rect> <rect data-v-59ca31ec="" x="0" y="0" width="0" height="8" clip-path="url(#frame-left)" fill="url(#ShadingLeft)"></rect></svg></div> <div data-v-59ca31ec="" data-frame-top-outer="" class="absolute top-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; top: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-right-outer="" class="absolute right-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; right: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-bottom-outer="" class="absolute bottom-0 preserve-3d" style="left: 0%; right: 0%; height: 0%; bottom: 0%; display: none;"></div> <div data-v-59ca31ec="" data-frame-left-outer="" class="absolute left-0 preserve-3d" style="top: 0%; bottom: 0%; width: 0%; left: 0%; display: none;"></div></div> <svg data-v-59ca31ec="" viewBox="0 0 12 8" preserveAspectRatio="xMidYMid slice" class="flex-1 overflow-visible h-full max-w-full preserve-3d" style="transform: rotateX(90deg) translateY(0%) rotateX(-90deg);"><svg data-v-59ca31ec="" x="-0.75" y="-0.75" viewBox="0 0 13.5 9.5" width="13.5" height="9.5" preserveAspectRatio="xMidYMid slice"><defs data-v-59ca31ec=""><clipPath data-v-59ca31ec="" id="clip-main-0"><rect data-v-59ca31ec="" x="0.75" y="0.75" width="12" height="8"></rect></clipPath></defs> <use data-v-59ca31ec="" xlink:href="#printable-0" clip-path="url(#clip-main-0)"></use></svg></svg></div></div></div></div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console