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

              
                <!--https://www.cassie.codes/posts/creating-my-logo-animation/-->

<svg class="name" id="name" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="234.565" height="150.481" viewBox="0 0 234.565 150.481">
  <defs>
    <clipPath id="clip-path">
      <path id="path4284" d="M290.133,342.4c-1.26-1.08-5.76-3.78-5.76-.36-5.58.36-10.98,1.8-16.56,2.34l-20.88,2.7s-.9.18-1.44.36c-3.78.72-7.56,1.8-11.52,2.7-2.52.36-9.54-.36-11.52,1.44-2.7,2.52,2.88,4.32,4.68,4.5,5.94.36,12.24,0,18.36,0h.72l19.44-1.8a.661.661,0,0,1,.54-.18c7.2-1.44,15.66-2.16,22.14-5.94,2.7-1.62,5.04-3.24,1.8-5.76Z"/>
    </clipPath>
    <clipPath id="clip-path-2">
      <path id="path4173" d="M267.813,344.38l.36-2.88c1.44-11.16,3.06-22.32,4.68-33.48a9.788,9.788,0,0,0,0-3.24c-.18-2.16-1.26-3.96-3.42-4.5-4.32-1.08-8.64-1.8-13.5-.72-1.08,3.42-2.34,6.84-3.24,10.26-.54,1.62-.36,3.42-.72,5.22a10.317,10.317,0,0,1-.72,2.52,14.47,14.47,0,0,0-2.52,11.16,5.182,5.182,0,0,1-.18,2.34c-.54,1.44-1.08,8.46-1.62,16.02-.283,2.955-.34,3.887-.72,9a86.63,86.63,0,0,1-1.08,8.64c-1.62,11.88-1.62,24.48-1.98,32.22,0,5.58.36,11.52-.18,17.1-.72,5.76.54,10.8,2.7,15.84.72,1.44,2.88,9,4.14,9.9,6.66,4.14,15.48-4.68,19.08-11.7,4.68-6.12,5.94-15.66,5.94-15.66-2.88,5.22-8.64,9-13.86,13.86-.72,1.26-1.98,2.16-3.42,3.6a28.185,28.185,0,0,1-3.24-13.68c.36-4.86,1.44-9.9,2.16-14.76a4.631,4.631,0,0,0-.18-2.7c-1.26-3.96,2.52-19.44,4.68-28.08,1.62-5.4,3.24-10.98,4.68-16.38,1.714-2.083,1.664-6.926,2.16-9.9Z"/>
    </clipPath>
    <clipPath id="clip-path-3">
      <path id="path4487" d="M235.067,367.42a16.62,16.62,0,0,0-5.4,3.24c-6.12,5.04-9.36,12.24-13.5,18.9l-7.38,12.06c-13.84-1.619-16.565,52.273,4.5,10.62a123.711,123.711,0,0,1,15.48-33.12,7.062,7.062,0,0,1,4.68-3.96l-1.62,5.22c-1.98,5.76-4.14,11.52-5.94,17.28-1.98,6.3-.54,8.64,5.58,10.62a10.5,10.5,0,0,0,4.14.54v-3.78c.72-1.98,3.42-6.48,4.14-8.28,1.98-5.76,4.14-11.52,6.3-17.1,1.44-3.24,1.44-6.66-.72-9.18a8.974,8.974,0,0,0-10.26-3.06Z"/>
    </clipPath>
    <clipPath id="clip-path-4">
      <path id="path4375" d="M213.287,363.28c-1.882-2.406-3.78-2.88-7.74-3.6-4.86-.72-5.94,0-7.02,4.5-1.62,7.56-3.96,15.12-4.14,22.86-1.8,11.34-2.16,15.84-3.6,26.28l-.72,6.3c-.54,3.78-1.44,7.56-1.26,11.34.36,9.54,10.26,14.04,18.54,8.82-1.98-2.52-1.8-5.4-.72-8.1,11.206-32.19-2.445-23.474,6.66-68.4Z"/>
    </clipPath>
    <clipPath id="clip-path-5">
      <path id="path4251" d="M175.344,431.32a18.722,18.722,0,0,1-.36-2.7,76.517,76.517,0,0,1,3.6-20.16c2.34-7.2,1.44-8.64-6.12-9.18-.9-.18-1.8,0-2.7-.18-2.16-.54-3.78.36-5.04,2.16-3.06,4.14-6.3,8.28-9.18,12.78l2.88,14.22c1.44,3.78,2.16,6.66,3.6,9.36a10.031,10.031,0,0,0,17.1,2.16c3.96-6.3,8.64-12.06,14.76-26.64a74.347,74.347,0,0,0-18.54,18.18Z"/>
    </clipPath>
    <clipPath id="clip-path-6">
      <path id="path4365" d="M164.724,401.26c-3.06,4.14-6.3,8.28-9.18,12.78-3.24,5.22-6.12,10.8-9.36,16.38a15.782,15.782,0,0,1-3.06,3.06v-5.22a76.035,76.035,0,0,1,3.6-18,59.7,59.7,0,0,1,7.38-16.56c1.8-2.52,3.6-3.78,6.66-3.6,2.16.18,4.32-.54,7.38-.9-1.08-1.8-1.62-2.88-2.34-3.24a28.807,28.807,0,0,0-7.74-1.98c-3.96-.54-7.92,0-11.88-.54a5.335,5.335,0,0,0-5.4,2.7,52.744,52.744,0,0,0-3.78,7.02c-3.06,6.48-6.48,12.42-9.18,23.76-1.44,7.74-.18,20.34.36,21.24,2.7,4.5,7.02,6.3,11.7,6.66,5.94.54,9.72.36,13.14-6.84,1.44-3.06,3.24-6.12,5.4-9.72,8.538-13.872,17.7-25.78,6.3-27Z"/>
    </clipPath>
    <clipPath id="clip-path-7">
      <path id="path4175" d="M115.1,318.1a14.2,14.2,0,0,0-5.94,2.34c-12.6,9.72-24.77,24.231-29.63,39.891-5.825,2.144-7.214,4.685-8.1,6.189-2.305,5.582,6.411,24.065,7.131,26.82.54-10.44,4.68-19.98,7.38-29.7a90.323,90.323,0,0,1,4.14-11.7c3.24-7.38,8.1-13.5,13.14-19.62,2.34-2.7,4.86-5.22,8.46-6.3,1.08,4.68,1.26,7.02-.72,12.78-3.24,9.36-6.84,18.54-10.44,27.72-3.78,10.08-7.56,20.16-15.48,29.52,2.34,1.62,3.96,3.06,5.94,3.78,2.7,1.08,5.76,1.8,8.64,2.7,6.3,1.62,8.46,7.38,4.86,12.78l-3.24,4.32c-5.94,6.84-11.7,13.68-15.66,21.78-1.26,2.52-.9,4.14,1.08,5.58,4.86,3.96,10.26,3.24,13.86-1.98,1.62-1.98,2.7-4.32,4.14-6.3a19.06,19.06,0,0,1,3.42-4.14l13.5-16.02a2.044,2.044,0,0,0,.54-1.44c1.08-7.74-4.32-16.38-11.88-19.08-1.62-.54-3.24-.72-4.68-1.26l-3.78-1.26c.54-1.62.9-3.06,1.44-4.32l9.36-19.44c1.8-4.14,3.24-8.46,5.4-12.24,3.6-6.3,5.4-13.32,7.2-20.34a29.954,29.954,0,0,0,.18-14.4c-1.44-5.22-4.86-7.74-10.26-6.66Z"/>>
    </clipPath>
    <clipPath id="clip-path-8">
      <path id="path4243" d="M77.123,361.48c0-6.3,0-12.42.18-18.72,0-5.76-1.98-10.62-4.86-15.12-3.24-4.86-9-6.48-15.3-4.68a50.348,50.348,0,0,0,1.08,5.04,167.369,167.369,0,0,1,5.58,43.2c0,13.14.18,26.28-.18,39.42-.18,7.74-1.08,15.48-1.98,23.04-.36,5.04,0,5.58,4.86,7.2l3.6,1.26c4.32,1.44,6.12,0,6.3-4.32,0-6.12,0-12.06.36-18.18l1.8-26.28S77.113,363.689,77.123,361.48Z"/>
    </clipPath>
  </defs>
  <g id="bart2" transform="translate(-57.143 -299.026)">
    <g id="t2">
      <g id="t2-2" data-name="t2" clip-path="url(#clip-path)">
        <line class="path pt2" id="Line_1" data-name="Line 1" y1="11" x2="84" transform="translate(211.643 342.526)" fill="none" stroke="#fff" stroke-width="20"/>
      </g>
    </g>
    <g id="t1">
      <g id="t1-2" data-name="t1" clip-path="url(#clip-path-2)">
        <path class="path pt1" id="Path_7" data-name="Path 7" d="M0,0-.225.881c-8.388,32.987-19.4,77.862-16.861,127.666,10.282,28.8,29.237-12.526,29.237-12.526" transform="translate(267.643 295.526)" fill="none" stroke="#fff" stroke-width="25"/>
      </g>
    </g>
    <g id="r2">
      <g id="r2-2" data-name="r2" clip-path="url(#clip-path-3)">
        <path class="path pr2" id="pr2" data-name="pr2" d="M11.591,15.633S41.432-56.844,44.847-35.329c11.137,4.44-9.372,37.186-9.372,37.186" transform="translate(191.643 405.526)" fill="none" stroke="#fff" stroke-width="13"/>
      </g>
    </g>
    <g id="r1">
      <g id="r1-2" data-name="r1" clip-path="url(#clip-path-4)">
        <path class="path pr1" id="Path_5" data-name="Path 5" d="M8,0S1.291,64.439,1.233,65.208c-1.706,22.6,9.143,32.151,9.143,32.151" transform="translate(196.643 357.526)" fill="none" stroke="#fff" stroke-width="20"/>
      </g>
    </g>
    <g id="a2">
      <g id="a2-2" data-name="a2" clip-path="url(#clip-path-5)">
        <path class="path pa2" id="Path_4" data-name="Path 4" d="M-9.734-21.828s-10.933,30.51-6.539,36.293,34.4-23.209,34.4-23.209" transform="translate(184.643 420.526)" fill="none" stroke="#fff" stroke-width="20"/>
      </g>
    </g>
    <g id="a1">
      <g id="a1-2" data-name="a1" clip-path="url(#clip-path-6)">
        <path class="path pa1" id="Path_3" data-name="Path 3" d="M6.607-.41S-18.846,1.244-18.346,6.244c.211,2.115-20.253,30.088-8.047,44.228,5.441,3.28,36.181-36.326,36.181-36.326" transform="translate(164.643 387.526)" fill="none" stroke="#fff" stroke-width="20"/>
      </g>
    </g>
    <g id="b2">
      <g id="b2-2" data-name="b2" clip-path="url(#clip-path-7)">
        <path class="path pb2" id="Path_2" data-name="Path 2" d="M0,0S38.171-80.974,44.421-65.724c3.091,7.541-1.739,37.953-21.59,72.913l-.16.281c12.109,4.976,19.094,6.4,19.671,12.892,1.492,16.679-30.92,39.362-30.92,39.362" transform="translate(71.643 388.526)" fill="none" stroke="#fff" stroke-width="20"/>
      </g>
    </g>
    <g id="b1">
      <g id="b1-2" data-name="b1" clip-path="url(#clip-path-8)">
        <path class="path pb1" id="Path_1" data-name="Path 1" d="M1,0,14.8,52.878,8.627,135.044" transform="translate(59.643 310.526)" fill="none" stroke="#fff" stroke-width="40"/>
      </g>
    </g>
  </g>
</svg>
              
            
!

CSS

              
                /*
** Press the spacebar to restart the
** animation.
*/
svg{
  display: block;
  margin: 0 auto; 
}
body {
  background: #000 linear-gradient(45deg, #24cec5dd, #5D84DBdd);
  background-size: cover;
  display:flex;
  align-items:center; 
}
body, html {  
  height: 100%;
  margin:0;
} 
              
            
!

JS

              
                TweenMax.set(".path", {
 drawSVG: '0% 0%'
});

tl = new TimelineMax({delay: 0.2});

TweenMax.set(".path", {
 drawSVG: '0% 0%'
});

tl = new TimelineMax({delay: 0.2});

// tl.addLabel("i", 6.5)
//  .set(".name", {autoAlpha: 1})
//  .to(".pb1", 0.25, {drawSVG:"100%", ease: Linear.easeNone})
// .to(".pb2", 0.4, {drawSVG:"100%", ease: Linear.easeNone,})
// .to(".pa1", 0.3, {drawSVG:"100%", ease: Linear.easeNone,  }, '+=0.4')
// .to(".pa2", 0.25, {drawSVG:"100%", ease: Linear.easeNone,  })
// .to(".pr1", 0.2, {drawSVG:"100%", ease: Linear.easeNone,  },'+=0.2')
// .to(".pr2", 0.3, {drawSVG:"100%", ease: Linear.easeNone,  })
// .to(".pt1", 0.3, {drawSVG:"100%", ease: Linear.easeNone,  }, '+=0.2')
// .to(".pt2", 0.15, {drawSVG:"100%", ease: Linear.easeNone}, '+=0.4');

tl.addLabel("i", 6.5)
 .set(".name", {autoAlpha: 1})
 .to(".pb1", 0.2, {drawSVG:"100%", ease: Linear.easeNone})
.to(".pb2", 0.35, {drawSVG:"100%", ease: Linear.easeNone,})
.to(".pa1", 0.2, {drawSVG:"100%", ease: Linear.easeNone,  }, '+=0.4')
.to(".pa2", 0.15, {drawSVG:"100%", ease: Linear.easeNone,  })
.to(".pr1", 0.1, {drawSVG:"100%", ease: Linear.easeNone,  },'+=0.1')
.to(".pr2", 0.2, {drawSVG:"100%", ease: Linear.easeNone,  })
.to(".pt1", 0.2, {drawSVG:"100%", ease: Linear.easeNone,  }, '+=0.1')
.to(".pt2", 0.1, {drawSVG:"100%", ease: Linear.easeNone}, '+=0.25');

document.body.onkeypress = function(e){
   if(e.which === 32){
    tl.restart();
   }
}
document.body.onclick = function(e){
    tl.restart();
}
              
            
!
999px

Console