Pen Settings

HTML

CSS

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

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

Auto Save

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

              
                <div id="app"></div>
              
            
!

CSS

              
                
              
            
!

JS

              
                const App = () => {
  return (
    <section id="home">
      <div className="container mx-auto flex px-10 py-20 md:flex-row flex-col bg-black">
        <div
          className="bg-slate-800 flex-grow w-full flex items-center justify-center 
        flex-col group cursor-pointer"
        >
          <div
            className="grid  grid-flow-col
             gap-1 my-4 w-full text-center 
          font-extrabold font text-3xl lg:text-6xl sm:text-6xl md:text-4xl"
          >
            <div
              className="relative w-64 bg-red-500 transform transition ease-in-out 
                shadow-xl shadow-black/40 [transform-style:preserve-3d] 
                hover:[transform:rotateY(180deg)] duration-1000 "
            >
              <div className="bg-red-800">裏あり</div>
              <div
                className="absolute  inset-0 h-full w-full bg-blue-500  [transform:rotateY(180deg)]
                [backface-visibility:hidden]"
              >
                <p>裏です</p>
              </div>
            </div>
            <div
              className="relative w-64 bg-amber-500 transform transition ease-in-out 
                shadow-xl shadow-black/40 [transform-style:preserve-3d] 
                hover:[transform:rotateY(180deg)] duration-1000 "
            >
              <div className="bg-amber-500">裏なし</div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
};

ReactDOM.render(<App />, document.getElementById("app"));

              
            
!
999px

Console