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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <svg class="shape shape1" xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 40 40">
    <path
       style="opacity:1;fill-opacity:1;stroke:none;"
       d="M 7.7423617,6.5524041 C 0.14213171,13.241204 -0.28352929,25.218399 6.5488487,32.446038 13.237649,40.04627 24.578354,40.568996 32.442483,33.639553 39.813699,26.434583 40.216105,14.96193 33.635997,7.7459191 26.935569,0.39795815 15.101951,-0.40029585 7.7423617,6.5524041 Z" />
    </svg>
<svg class="shape shape2" xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 40 40">
    <path
       style="opacity:1;fill-opacity:1;stroke:none;"
       d="M 7.7423617,6.5524041 C 0.14213171,13.241204 -0.28352929,25.218399 6.5488487,32.446038 13.237649,40.04627 24.578354,40.568996 32.442483,33.639553 39.813699,26.434583 40.216105,14.96193 33.635997,7.7459191 26.935569,0.39795815 15.101951,-0.40029585 7.7423617,6.5524041 Z" />
    </svg>
              
            
!

CSS

              
                body {
  margin: 0;
}

.shape {
  display: block;
  fill: #2095F2;
  margin: 0 auto;
}

.shape1 {
  animation: rotate 1500ms infinite;
  margin-top: 50px;
}

.shape2 {
  animation: rotateScale 1500ms infinite;
  fill: #ccc;
  filter: blur(4px);
  margin-top: 10px;
}

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

@keyframes rotateScale {
  0% {
    transform: scaleY(0.2) rotate(0deg);
  }
  100% {
    transform: scaleY(0.2) rotate(360deg);
  }
}

              
            
!

JS

              
                var timeline = anime.timeline({
  autoplay: true,
  direction: "alternate",
  loop: true
});

timeline
  .add({
    targets: "path",
    d: {
      value: [
        "M 7.7423617,6.5524041 C 0.14213171,13.241204 -0.28352929,25.218399 6.5488487,32.446038 13.237649,40.04627 24.578354,40.568996 32.442483,33.639553 39.813699,26.434583 40.216105,14.96193 33.635997,7.7459191 26.935569,0.39795815 15.101951,-0.40029585 7.7423617,6.5524041 Z",
        "M 1.4639006,1.6816009 C 1.4129866,11.374999 1.1386316,31.038516 1.2037966,39.132841 10.361482,39.005187 29.91693,39.467197 38.833611,39.035804 39.621131,30.764045 38.910573,9.4542879 39.093715,1.2274189 30.247144,1.2462399 8.8125376,1.8724369 1.4639006,1.6816009 Z"
      ],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 0
  })
  .add({
    targets: ".shape1",
    fill: {
      value: ["#2095F2", "#4BAF4F"],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 0
  })
  .add({
    targets: "path",
    d: {
      value: [
        "M 1.4639006,1.6816009 C 1.4129866,11.374999 1.1386316,31.038516 1.2037966,39.132841 10.361482,39.005187 29.91693,39.467197 38.833611,39.035804 39.621131,30.764045 38.910573,9.4542879 39.093715,1.2274189 30.247144,1.2462399 8.8125376,1.8724369 1.4639006,1.6816009 Z",
        "M 19.499615,1.5030295 C 15.341558,11.017856 5.4243459,31.217087 1.2037966,39.132841 10.361482,39.005187 29.91693,39.467197 38.833611,39.035804 34.978274,30.942616 24.624859,11.418574 20.165144,1.5845618 18.73688,1.6665173 20.913606,1.4728946 19.499615,1.5030295 Z"
      ],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 1500
  })
  .add({
    targets: ".shape1",
    fill: {
      value: ["#4BAF4F", "#F44236"],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 1500
  })
  .add({
    targets: "path",
    d: {
      value: [
        "M 19.499615,1.5030295 C 15.341558,11.017856 5.4243459,31.217087 1.2037966,39.132841 10.361482,39.005187 29.91693,39.467197 38.833611,39.035804 34.978274,30.942616 24.624859,11.418574 20.165144,1.5845618 18.73688,1.6665173 20.913606,1.4728946 19.499615,1.5030295 Z",
        "M 7.7423617,6.5524041 C 0.14213171,13.241204 -0.28352929,25.218399 6.5488487,32.446038 13.237649,40.04627 24.578354,40.568996 32.442483,33.639553 39.813699,26.434583 40.216105,14.96193 33.635997,7.7459191 26.935569,0.39795815 15.101951,-0.40029585 7.7423617,6.5524041 Z"
      ],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 3000
  })
  .add({
    targets: ".shape1",
    fill: {
      value: ["#F44236", "#2095F2"],
      duration: 1500,
      easing: "easeInOutQuad"
    },
    offset: 3000
  });

              
            
!
999px

Console