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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <svg width="280" height="180" viewBox="0 0 280 180">
     <path
       id="box1"
       d="m 60,40 120,0 0,120 -120,0 z"/>
    <path
       id="box2"
       d="m 100.01,48.148133 c 0,-6.63837 -0.01,-33.521312 -0.01,-48.148133 6.91675,0 25.89064,-0.01 37.40557,-0.01 11.51492,0 22.65579,-0.01 33.46368,-0.01 7.49408,0.44706542 34.82969,-0.01 49.13075,-0.01 0,11.364216 0.01,27.300143 0.01,38.174106 0,8.935435 0.01,12.729881 0.01,20.749702 0,13.423095 0.01,22.22032 0.01,27.631885 0,9.632563 0.01,22.128727 0.01,33.474307 -1.93649,0.73772 -19.77884,-0.01 -26.03365,-0.01 -7.26225,0 -11.91541,-0.01 -17.86796,-0.01 -7.71975,0 -12.8319,0.0339 -19.37382,-0.01 -6.54192,-0.0439 -13.54309,-0.01 -19.87693,-0.01 -9.35243,0 -28.46198,-0.01 -36.81764,-0.01 0,-4.5323 -0.01,-23.335759 -0.01,-27.660391 0,-4.696032 -0.004,-11.785564 -0.01,-15.946671 0,-4.419388 -0.01,-7.596357 -0.01,-11.430271 0,-3.07634 -0.04014,-0.553188 -0.01,-4.761457 0,-3.967068 -0.01,0.15208 -0.01,-6.01591 0,-10.844034 -0.01,6.83084 -0.01,-5.987167 z"/>
    <g id="logo">
      <rect
         id="logo-bg"
         width="120.04"
         height="34.321999"
         x="80"
         y="185.678" />
      <path
         id="logo-text"
         d="m 80.62503,185.42314 119.44004,0 0,34.75736 -119.44403,0 z m 114.08371,24.95421 c -0.20532,0.0609 -0.41862,0.0973 -0.62992,0.10144 -0.67379,0 -1.02462,-0.29924 -1.02462,-1.18076 l 0,-6.60576 c 0,-4.36809 -2.69512,-5.15924 -5.93244,-5.15924 -2.20672,-0.0507 -4.3955,0.41997 -6.3989,1.37147 l -0.57808,3.49765 3.40876,0.36924 0.48839,-1.70825 c 0.71364,-0.34084 1.50104,-0.49097 2.28645,-0.43822 2.42002,0 2.45191,1.1461 2.45191,3.42867 l 0,0.47474 c -0.81131,-0.0974 -1.63062,-0.14202 -2.45191,-0.13796 -3.40875,0 -6.95705,0.87846 -6.95705,4.61754 0,3.17102 2.45191,4.34974 4.60481,4.34974 2.03727,-0.006 3.89515,-1.17669 4.80415,-3.03102 0.0358,1.78534 1.53495,3.17101 3.28517,3.03102 0.9409,0 1.86584,-0.23737 2.6971,-0.68573 z m -9.17773,-0.10144 c -1.00468,0.12782 -1.86585,-0.73442 -1.75421,-1.75896 0,-1.65347 1.34955,-2.05923 2.85458,-2.05923 0.71764,0.0163 1.43926,0.0812 2.14891,0.19882 -0.0996,2.50557 -1.69839,3.61734 -3.24928,3.61734 z m -9.94719,-20.43811 -6.45869,23.19526 4.20611,0 6.4627,-23.1912 z m -8.67738,0 -6.45869,23.19526 4.20612,0 6.4587,-23.19526 z m -13.7347,13.48136 4.47126,0 0,-5.48789 -4.46926,0 z m 0,9.7423 4.47126,0 0,-5.48993 -4.46926,0 z m -7.21021,-3.32724 -4.84004,0 8.28468,-9.60838 -0.33092,-2.29254 -13.11673,0 -0.53424,5.33574 3.08184,0.33271 0.67377,-2.35949 4.6706,0 -8.2189,9.60434 0.43059,2.29254 13.04497,0 0.93093,-5.33575 -3.3689,-0.33272 z m -20.70172,-12.20727 c -5.39422,0 -8.01357,3.67618 -8.01357,8.1233 0,4.85695 3.17952,7.71755 7.78432,7.71755 4.77226,0 8.2169,-3.06349 8.2169,-7.92246 -0.006,-4.24627 -2.63132,-7.92447 -7.99363,-7.92447 z m -0.10764,12.48522 c -2.32235,0 -3.51442,-2.02271 -3.51442,-4.65001 0,-2.86872 1.34756,-4.52422 3.54431,-4.52422 2.02332,0 3.64797,1.37351 3.64797,4.45525 0,2.91741 -1.45519,4.72101 -3.67986,4.72101 z m -11.77318,-7.23064 c 0,-3.61125 -2.43995,-5.2627 -5.13706,-5.2627 -2.14293,-0.0812 -4.10047,1.23148 -4.86395,3.27042 -0.73159,-2.23168 -2.71903,-3.27245 -4.86994,-3.27245 -1.87382,-0.0812 -3.62803,0.92311 -4.53703,2.5928 l 0,-2.29253 -6.25936,0 0,3.30694 1.98546,0 0,8.6021 -1.98745,0 0,3.30695 9.11394,0 0,-3.30695 -2.85458,0 0,-5.28096 c 0,-2.3326 0.86315,-3.61126 2.88647,-3.61126 1.68445,0 2.5476,1.1878 2.5476,3.64574 l 0,8.56964 6.25936,0 0,-3.30693 -1.98546,0 0,-5.29922 c 0,-2.56555 0.86316,-3.61126 2.88449,-3.61126 1.68643,0 2.5476,1.21969 2.5476,3.64575 l 0,8.54935 6.26334,0 0,-3.30694 -1.98944,0 z" />
      </g>
    </svg>
            
          
!

CSS

            
              body {
  align-items: center;
  display: flex;
  font-size: 18px;
  height: 100%;
  justify-content: center;
  line-height: 1.4;
  margin: 0;
  position: absolute;
  width: 100%;
}

svg {
  background: black;
  filter: invert(100%);
  margin-top: -10px;
}

path {
  fill: white;
}

rect {
  fill: black;
}

#box2 {
  mix-blend-mode: difference;
}

            
          
!

JS

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

timeline
  .add({
    targets: "#box1",
    translateX: {
      value: [0, -50],
      duration: 600,
      delay: 0,
      easing: "easeOutCubic"
    },
    translateY: {
      value: [0, -10],
      duration: 600,
      delay: 0,
      easing: "linear"
    },
    offset: 600
  })
  .add({
    targets: "#box1",
    translateX: {
      value: [-50, 20],
      duration: 600,
      delay: 0,
      easing: "easeInCubic"
    },
    translateY: {
      value: [-10, -20],
      duration: 600,
      delay: 0,
      easing: "linear"
    },
    offset: 1200
  })
  .add({
    targets: "#box2",
    translateX: {
      value: [0, 50],
      duration: 600,
      delay: 0,
      easing: "easeOutCubic"
    },
    translateY: {
      value: [0, 10],
      duration: 600,
      delay: 0,
      easing: "linear"
    },
    offset: 600
  })
  .add({
    targets: "#box2",
    translateX: {
      value: [50, -20],
      duration: 600,
      delay: 0,
      easing: "easeInCubic"
    },
    translateY: {
      value: [10, 20],
      duration: 600,
      delay: 0,
      easing: "linear"
    },
    offset: 1200
  })
  .add({
    targets: "#box2",
    d: {
      value: [
        "m 100.01,48.148133 c 0,-6.63837 -0.01,-33.521312 -0.01,-48.148133 6.91675,0 25.89064,-0.01 37.40557,-0.01 11.51492,0 22.65579,-0.01 33.46368,-0.01 7.49408,0.44706542 34.82969,-0.01 49.13075,-0.01 0,11.364216 0.01,27.300143 0.01,38.174106 0,8.935435 0.01,12.729881 0.01,20.749702 0,13.423095 0.01,22.22032 0.01,27.631885 0,9.632563 0.01,22.128727 0.01,33.474307 -1.93649,0.73772 -19.77884,-0.01 -26.03365,-0.01 -7.26225,0 -11.91541,-0.01 -17.86796,-0.01 -7.71975,0 -12.8319,0.0339 -19.37382,-0.01 -6.54192,-0.0439 -13.54309,-0.01 -19.87693,-0.01 -9.35243,0 -28.46198,-0.01 -36.81764,-0.01 0,-4.5323 -0.01,-23.335759 -0.01,-27.660391 0,-4.696032 -0.004,-11.785564 -0.01,-15.946671 0,-4.419388 -0.01,-7.596357 -0.01,-11.430271 0,-3.07634 -0.04014,-0.553188 -0.01,-4.761457 0,-3.967068 -0.01,0.15208 -0.01,-6.01591 0,-10.844034 -0.01,6.83084 -0.01,-5.987167 z",
        "m 115.20196,52.188743 c 6.13402,-6.37784 11.52146,-12.05997 19.03383,-18.85797 4.61915,-2.6983 9.91641,-7.10188 18.14362,-7.52986 8.22721,-0.42797 11.99428,3.22797 16.217,3.47988 4.22272,0.25191 6.84041,-2.30127 11.2259,0.61348 4.74267,3.15213 1.8692,7.98376 6.32971,10.0176 10.46949,5.37833 19.62812,4.44637 18.25162,12.92102 1.41779,1.04783 0.93729,7.32912 -0.62948,7.93391 -3.10788,7.59463 -3.72881,4.75498 -5.66531,5.4927 -1.93649,0.73772 -2.39634,3.17692 -7.63803,3.74192 -5.2417,0.56501 -12.92799,-5.19285 -19.13065,0.0278 -6.20266,5.22062 -5.48423,28.21874 -5.48423,28.21874 0,0 -10.5258,-3.69144 -16.84647,-7.5764 -6.32068,-3.88497 -8.21211,-5.878222 -13.77546,-10.40896 1.63399,-4.404469 2.32373,-6.135125 4.03762,-10.19635 -5.10464,-0.02062 -7.4375,0.209347 -12.22084,0.21577 4.30804,-4.412994 5.29475,-5.576218 8.73961,-8.90489 -6.40413,-0.171946 -9.34824,-0.17636 -14.85004,-0.21577 4.09465,-4.20629 6.0185,-6.161606 8.74288,-8.79383 -6.11446,-0.233112 -9.25108,-0.240673 -14.48128,-0.17879 z"
      ],
      duration: 1200,
      delay: 0,
      easing: "easeOutQuad"
    },
    offset: 800
  })
  .add({
    targets: "#box1",
    translateX: {
      value: [20, 20],
      duration: 600,
      delay: 0,
      easing: "easeOutQuad"
    },
    translateY: {
      value: [-20, -20],
      duration: 1000,
      delay: 0,
      easing: "easeInQuad"
    },
    offset: 1800
  })
  .add({
    targets: "#box2",
    translateX: {
      value: [-20, -20],
      duration: 600,
      delay: 0,
      easing: "easeInQuad"
    },
    translateY: {
      value: [20, 20],
      duration: 1000,
      delay: 0,
      easing: "easeInQuad"
    },
    offset: 1800
  })
  .add({
    targets: "#logo",
    translateY: {
      value: [0, -40],
      duration: 1000,
      delay: 0,
      easing: "easeInQuad"
    },
    offset: 800
  });

            
          
!
999px

Console