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.


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.


                <div class="scene">
  <div class="x-dim">
    <div class="y-dim">
      <div class="z-dim">
        <!-- geometry -->
        <div class="plane">
          <div class="side side-front">
            <div class="content content-front clip-heart bg-ua">
          <div class="side side-back">
            <div class="content content-back clip-heart bg-ua">
        <!-- end geomety -->

<svg height="0" width="0" class="svg-clip">
    <clipPath id="heart-clip" clipPathUnits="objectBoundingBox">
      <path d="M0.5,0.175 C0.369,-0.071,0,0.001,0,0.309 C0,0.521,0.232,0.737,0.5,1 C0.768,0.737,1,0.521,1,0.309 C1,0,0.63,-0.069,0.5,0.175"/>

<svg width=0 height=0 xmlns:svg="" xmlns="" xmlns:xlink="">

  <clipPath id="heart-clip" clipPathUnits="objectBoundingBox">
    <path id="heart" fill="orange" stroke="red"
    d="M0.11214,0 L0.64,0 L0.64,0.70007 L0.11214,0.70007 L0.01885,0.4537 C-0.00628,0.38732 -0.00628,0.31274 0.01885,0.24637 L0.11214,0 Z"



                @import url('');

/* prepare scene*/
* { margin: 0; padding: 0; box-sizing: border-box }
.scene { width: 100%; height: 100vh; transform: perspective(1000px)}
.scene, .scene *, .scene *::before, .scene *::after {transform-style: preserve-3d; display: grid; place-items: center; position: absolute; outline: 2px solid transparent}
.content, .content * { display: unset; position: unset; place-items: unset}

/* scene rotation */
.x-dim { transform: rotateX(0deg) } 
.y-dim { transform: rotateY(0deg) }
.z-dim { transform: rotateZ(0deg) }

/* scene rotation animation */
/* .x-dim { animation: rotateXAnimation 3s ease-out }  */
.y-dim { animation: rotateYAnimation 6s linear infinite } 
/* .z-dim { animation: rotateZAnimation 3s ease-out }  */
.y-dim:hover { animation-play-state: paused }

@keyframes rotateXAnimation { to { transform: rotateX(360deg)} }
@keyframes rotateYAnimation { to { transform: rotateY(-360deg)} }
@keyframes rotateZAnimation { to { transform: rotateZ(360deg)} }
/* plane settings */
.plane{ height: 400px; width: 400px}
.plane .side{ width: 100%; height: 100%; transform: translateZ(var(--t,1px)) rotateY(var(--r, 0deg)) }
.plane .side-back{ --t: -1px; --r: 180deg}
.plane .side .content {width: 100%; height: 100%}

/* content */
.content.clip-heart { -webkit-clip-path: url(#heart-clip); clip-path: url(#heart-clip) } { 
    linear-gradient(rgb(0, 87, 183) 50%, rgb(255, 215, 0) 0);
  background-repeat: repeat-x;
  background-size: auto 50%, auto 50%, auto;
  background-position: center top, center bottom;
  display: flex;
  flex-direction: column;
  place-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 40px;
  color: white;
  text-shadow: 0 0 5px black;

  height: 100vh;
  background-image: url(;
  background-size: cover;
  background-position: center;
  overflow: hidden;