css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="svg-container poke-stir"> 
  <svg viewBox="0 0 400 400">
    <g fill="none" fill-rule="evenodd">
      <path d="M180.530793,170 C176.306392,170 172.080982,171.644614 168.849194,174.848186 C162.383602,181.312771 162.383602,191.745793 168.849194,198.182161 L177.242572,206.573524 L199.414635,228.80202 C199.727031,229.085192 200.266167,229.085192 200.549339,228.80202 L222.778842,206.572516 L231.171213,198.181153 C237.609596,191.744786 237.609596,181.311763 231.171213,174.847179 C224.707636,168.411818 214.301822,168.411818 207.83623,174.847179 L200.010203,182.700414 L192.184177,174.847179 C188.952388,171.644614 184.756203,170 180.530793,170 L180.530793,170 L180.530793,170 Z" class="heart" fill="#EF5366"></path>
      <g class="poke-rotate">
        <path d="M272,199 C272,238.764502 239.764502,271 200,271 C160.235498,271 128,238.764502 128,199 L272,199 L272,199 Z" class="ball-bot" fill="#E8E8E8"></path>
        <g class="top">
          <path d="M272,199 C272,159.235498 239.764502,127 200,127 C160.235498,127 128,159.235498 128,199 C128,199 272,199 272,199 Z" class="ball-top" fill="#EF5366"></path>
          <path d="M270.939911,195.999975 C270.97984,196.9949 271,197.995033 271,198.999975 L130,198.999975 C130,197.995033 130.02016,196.9949 130.060089,195.999975 L270.939912,196 L270.939911,195.999975 Z" class="edge" stroke="#40484B" stroke-width="5" stroke-linecap="round" stroke-linejoin="round" fill="#40484B"></path>
          <circle class="button" stroke="#40484B" stroke-width="6" fill="#FFFFFF" cx="200" cy="199" r="15"></circle>
        </g>
      </g>
    </g>
  </svg>
</div>
            
          
!
            
              body{
  background: #F6D764;
  height: 100%; 
  width: 100%;
} 

.svg-container{
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

svg{
  display: block;
  width: 100%;
  max-width: 400px;
  height: 100%;
  max-height: 400px;
}


.top {
  animation: ball-top 500ms cubic-bezier(0.215, 0.61, 0.355, 1) 500ms forwards, ball-top 1000ms cubic-bezier(0.215, 0.61, 0.355, 1) 1200ms reverse forwards;
}

.ball-bot {
  animation: ball-bot 500ms cubic-bezier(0.215, 0.61, 0.355, 1) 500ms forwards, ball-bot 1000ms cubic-bezier(0.215, 0.61, 0.355, 1) 1200ms reverse forwards;
}

.heart {
  animation: heart 1000ms ease-in-out infinite both;
  transform-origin: center center;
}

.poke-stir {
   animation: shake-slow 650ms cubic-bezier(0.55, 0.055, 0.675, 0.19) both, poke-bye 1000ms ease-out 2500ms forwards;
  transform-origin: center center;
}

.poke-rotate {
  animation: poke-rotate 1000ms ease-in-out 1000ms both;
  transform-origin: center center;
}

@keyframes poke-rotate {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

@keyframes poke-bye {
   0% {transform: translateX(0px) rotate(0deg); opacity:1;}
  75% {opacity:1;}
  100% {transform: translateX(1000px) rotate(360deg); opacity:0;}
}

@keyframes shake-slow {
  2% {
    transform: translate(-6px, 10px) rotate(3.5deg); }
  4% {
    transform: translate(3px, -6px) rotate(-0.5deg); }
  6% {
    transform: translate(3px, 1px) rotate(3.5deg); }
  8% {
    transform: translate(6px, -3px) rotate(-2.5deg); }
  10% {
    transform: translate(3px, -1px) rotate(2.5deg); }
  12% {
    transform: translate(-5px, 2px) rotate(-1.5deg); }
  14% {
    transform: translate(-5px, -1px) rotate(2.5deg); }
  16% {
    transform: translate(1px, 6px) rotate(-0.5deg); }
  18% {
    transform: translate(4px, 4px) rotate(1.5deg); }
  20% {
    transform: translate(-6px, 3px) rotate(-1.5deg); }
  22% {
    transform: translate(5px, 4px) rotate(-2.5deg); }
  24% {
    transform: translate(6px, -9px) rotate(3.5deg); }
  26% {
    transform: translate(6px, -1px) rotate(0.5deg); }
  28% {
    transform: translate(10px, 8px) rotate(-2.5deg); }
  30% {
    transform: translate(3px, 3px) rotate(1.5deg); }
  32% {
    transform: translate(4px, 3px) rotate(2.5deg); }
  34% {
    transform: translate(-3px, 0px) rotate(1.5deg); }
  36% {
    transform: translate(8px, -8px) rotate(-1.5deg); }
  38% {
    transform: translate(10px, 10px) rotate(-1.5deg); }
  40% {
    transform: translate(-4px, -8px) rotate(0.5deg); }
  42% {
    transform: translate(-5px, -1px) rotate(0.5deg); }
  44% {
    transform: translate(-2px, 5px) rotate(3.5deg); }
  46% {
    transform: translate(-1px, 7px) rotate(2.5deg); }
  48% {
    transform: translate(4px, 7px) rotate(-2.5deg); }
  50% {
    transform: translate(2px, 4px) rotate(-1.5deg); }
  52% {
    transform: translate(-7px, 3px) rotate(-0.5deg); }
  54% {
    transform: translate(1px, -3px) rotate(-2.5deg); }
  56% {
    transform: translate(-2px, 2px) rotate(3.5deg); }
  58% {
    transform: translate(8px, -7px) rotate(3.5deg); }
  60% {
    transform: translate(9px, 5px) rotate(1.5deg); }
  62% {
    transform: translate(10px, 5px) rotate(-2.5deg); }
  64% {
    transform: translate(1px, 2px) rotate(0.5deg); }
  66% {
    transform: translate(-6px, 7px) rotate(-1.5deg); }
  68% {
    transform: translate(0px, 7px) rotate(-1.5deg); }
  70% {
    transform: translate(0px, -5px) rotate(-2.5deg); }
  72% {
    transform: translate(-1px, 2px) rotate(0.5deg); }
  74% {
    transform: translate(-7px, -9px) rotate(3.5deg); }
  76% {
    transform: translate(10px, 6px) rotate(1.5deg); }
  78% {
    transform: translate(-1px, 10px) rotate(-0.5deg); }
  80% {
    transform: translate(-7px, -6px) rotate(-2.5deg); }
  82% {
    transform: translate(-2px, -6px) rotate(0.5deg); }
  84% {
    transform: translate(-1px, 4px) rotate(3.5deg); }
  86% {
    transform: translate(-7px, 8px) rotate(0.5deg); }
  88% {
    transform: translate(1px, -5px) rotate(0.5deg); }
  90% {
    transform: translate(-2px, 2px) rotate(-2.5deg); }
  92% {
    transform: translate(-2px, 10px) rotate(3.5deg); }
  94% {
    transform: translate(7px, 5px) rotate(-1.5deg); }
  96% {
    transform: translate(0px, 2px) rotate(1.5deg); }
  98% {
    transform: translate(0px, 5px) rotate(1.5deg); }
  0%, 100% {
    transform: translate(0, 0) rotate(0); } }

/* https://goo.gl/4pcb61 */
@keyframes heart { 
  0% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  2.8% { transform: matrix3d(1.142, 0, 0, 0, 0, 1.142, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  5.51% { transform: matrix3d(1.223, 0, 0, 0, 0, 1.223, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  11.01% { transform: matrix3d(1.276, 0, 0, 0, 0, 1.276, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  17.32% { transform: matrix3d(1.238, 0, 0, 0, 0, 1.238, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  23.52% { transform: matrix3d(1.167, 0, 0, 0, 0, 1.167, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  36.04% { transform: matrix3d(1.05, 0, 0, 0, 0, 1.05, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  48.55% { transform: matrix3d(1.002, 0, 0, 0, 0, 1.002, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  61.06% { transform: matrix3d(0.994, 0, 0, 0, 0, 0.994, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); } 
}

/* https://goo.gl/A9BFq8 */
@keyframes ball-top { 
  0% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  2.1% { transform: matrix3d(0.999, 0.039, 0, 0, -0.039, 0.999, 0, 0, 0, 0, 1, 0, 0, -29.612, 0, 1); }
  4.1% { transform: matrix3d(0.998, 0.063, 0, 0, -0.063, 0.998, 0, 0, 0, 0, 1, 0, 0, -59.424, 0, 1); }
  6.41% { transform: matrix3d(0.997, 0.077, 0, 0, -0.077, 0.997, 0, 0, 0, 0, 1, 0, 0, -88.104, 0, 1); }
  8.21% { transform: matrix3d(0.997, 0.08, 0, 0, -0.08, 0.997, 0, 0, 0, 0, 1, 0, 0, -103.869, 0, 1); }
  9.61% { transform: matrix3d(0.997, 0.079, 0, 0, -0.079, 0.997, 0, 0, 0, 0, 1, 0, 0, -111.838, 0, 1); }
  11.41% { transform: matrix3d(0.997, 0.073, 0, 0, -0.073, 0.997, 0, 0, 0, 0, 1, 0, 0, -117.151, 0, 1); }
  12.81% { transform: matrix3d(0.998, 0.066, 0, 0, -0.066, 0.998, 0, 0, 0, 0, 1, 0, 0, -118.171, 0, 1); }
  14.51% { transform: matrix3d(0.998, 0.056, 0, 0, -0.056, 0.998, 0, 0, 0, 0, 1, 0, 0, -116.801, 0, 1); }
  20.52% { transform: matrix3d(1, 0.02, 0, 0, -0.02, 1, 0, 0, 0, 0, 1, 0, 0, -104.096, 0, 1); }
  20.72% { transform: matrix3d(1, 0.019, 0, 0, -0.019, 1, 0, 0, 0, 0, 1, 0, 0, -103.71, 0, 1); }
  27.03% { transform: matrix3d(1, -0.006, 0, 0, 0.006, 1, 0, 0, 0, 0, 1, 0, 0, -97.316, 0, 1); }
  28.13% { transform: matrix3d(1, -0.008, 0, 0, 0.008, 1, 0, 0, 0, 0, 1, 0, 0, -97.21, 0, 1); }
  33.23% { transform: matrix3d(1, -0.012, 0, 0, 0.012, 1, 0, 0, 0, 0, 1, 0, 0, -98.47, 0, 1); }
  43.54% { transform: matrix3d(1, -0.005, 0, 0, 0.005, 1, 0, 0, 0, 0, 1, 0, 0, -100.428, 0, 1); }
  45.75% { transform: matrix3d(1, -0.003, 0, 0, 0.003, 1, 0, 0, 0, 0, 1, 0, 0, -100.379, 0, 1); }
  58.26% { transform: matrix3d(1, 0.002, 0, 0, -0.002, 1, 0, 0, 0, 0, 1, 0, 0, -99.935, 0, 1); }
  58.96% { transform: matrix3d(1, 0.002, 0, 0, -0.002, 1, 0, 0, 0, 0, 1, 0, 0, -99.934, 0, 1); }
  74.37% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -100.01, 0, 1); }
  83.28% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -100.001, 0, 1); }
  89.79% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -99.998, 0, 1); }
  100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, -100, 0, 1); } 
}

/*  https://goo.gl/h8csVO */
@keyframes ball-bot { 
  0% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
  2.1% { transform: matrix3d(0.999, 0.039, 0, 0, -0.039, 0.999, 0, 0, 0, 0, 1, 0, 0, 29.612, 0, 1); }
  4.1% { transform: matrix3d(0.998, 0.063, 0, 0, -0.063, 0.998, 0, 0, 0, 0, 1, 0, 0, 59.424, 0, 1); }
  6.41% { transform: matrix3d(0.997, 0.077, 0, 0, -0.077, 0.997, 0, 0, 0, 0, 1, 0, 0, 88.104, 0, 1); }
  8.21% { transform: matrix3d(0.997, 0.08, 0, 0, -0.08, 0.997, 0, 0, 0, 0, 1, 0, 0, 103.869, 0, 1); }
  9.61% { transform: matrix3d(0.997, 0.079, 0, 0, -0.079, 0.997, 0, 0, 0, 0, 1, 0, 0, 111.838, 0, 1); }
  11.41% { transform: matrix3d(0.997, 0.073, 0, 0, -0.073, 0.997, 0, 0, 0, 0, 1, 0, 0, 117.151, 0, 1); }
  12.81% { transform: matrix3d(0.998, 0.066, 0, 0, -0.066, 0.998, 0, 0, 0, 0, 1, 0, 0, 118.171, 0, 1); }
  14.51% { transform: matrix3d(0.998, 0.056, 0, 0, -0.056, 0.998, 0, 0, 0, 0, 1, 0, 0, 116.801, 0, 1); }
  20.52% { transform: matrix3d(1, 0.02, 0, 0, -0.02, 1, 0, 0, 0, 0, 1, 0, 0, 104.096, 0, 1); }
  20.72% { transform: matrix3d(1, 0.019, 0, 0, -0.019, 1, 0, 0, 0, 0, 1, 0, 0, 103.71, 0, 1); }
  27.03% { transform: matrix3d(1, -0.006, 0, 0, 0.006, 1, 0, 0, 0, 0, 1, 0, 0, 97.316, 0, 1); }
  28.13% { transform: matrix3d(1, -0.008, 0, 0, 0.008, 1, 0, 0, 0, 0, 1, 0, 0, 97.21, 0, 1); }
  33.23% { transform: matrix3d(1, -0.012, 0, 0, 0.012, 1, 0, 0, 0, 0, 1, 0, 0, 98.47, 0, 1); }
  43.54% { transform: matrix3d(1, -0.005, 0, 0, 0.005, 1, 0, 0, 0, 0, 1, 0, 0, 100.428, 0, 1); }
  45.75% { transform: matrix3d(1, -0.003, 0, 0, 0.003, 1, 0, 0, 0, 0, 1, 0, 0, 100.379, 0, 1); }
  58.26% { transform: matrix3d(1, 0.002, 0, 0, -0.002, 1, 0, 0, 0, 0, 1, 0, 0, 99.935, 0, 1); }
  58.96% { transform: matrix3d(1, 0.002, 0, 0, -0.002, 1, 0, 0, 0, 0, 1, 0, 0, 99.934, 0, 1); }
  74.37% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 100.01, 0, 1); }
  83.28% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 100.001, 0, 1); }
  89.79% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 99.998, 0, 1); }
  100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 100, 0, 1); } 
}




            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console