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

              
                <div class="llp-face-wrap">
  <svg id="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 230" >
    <style>.a{fill:none;}</style>
    <path d="M64 38.3c0 0 18-21.3 4-28.7S41.8 18 38.7 51c-3.7 39-27 56.6-33 43.7 -0.9-7.8 8.3-11.3 22.7 1.7 19 16 37.3-13.3 42-19C75 71.7 93.7 60.7 89 57S60.7 82.2 75.3 90.7c6.1 2.9 22-10.7 27-32 0 0-14.7 29.7-7 29.7 11.7 0 27.3-37.7 37.7-36.3 10.3 1.3 15.3 22-10 26.7 9 16.7-7 37.3-14.7 30.3 -7.5-6.8 40-17 57.7-61.7 0 0-15 28.7-4.7 31.7 10.3 3 29.7-30.3 27-34 -2.7-3.7-6.3 1.9-9 16 -2.9 15.1-5 43-23.7 43 -5.3 0 1-7.5 7.2-11.6 7.5-4.9 16.5-8.7 28.2-23.1"  class="a" />
    <path d="M242 67.3c0 0 14.7-15.7 6.7-25.3 -8-9.7-27.3-7.7-29.3 17.1 -2 24.9-7.7 67.6-32.3 66.9 -11.3-0.3-4.6-16.1 16.7-1 23 16.3 46.3-18 51.3-36.3 0 0-10.3 33 0 32.7 10.3-0.3 26-38.9 26-38.9s-2.3 27.2-7.3 35.9c8-17 19.3-39.1 27-35.9 7.7 3.2-17.7 28.2-5.7 32.2 0 0 11.7 0.7 21.7-18.3" class="a"/>
    <path d="M319.7 96.7c0 0 21.3-5.2 19-17 -2.3-12-34.3 17.9-17 30.7 7 5.2 21.7-3.4 23-10.4" class="a"/>
    <path d="M260.2 75.3c-1 0-1.8-0.8-1.8-1.8 0-1 0.8-2.8 1.8-2.8s1.8 0.8 1.8 1.8c0 1-0.8 1.8-1.8 1.8" class="a"/>
    <path d="M77.7 134.7c0 0 5 19.7 1.5 48.4 -2.3 20.6-9.9 40.9-15.5 40.9 -12 0 25.3-102 63.7-92 13.3 3.7 14 49.7-29.7 56.7 -8.3 1.3-7.4-6 0-5.7 0 0 13.7-1.3 28.7 7" class="a"/>
    <path d="M126.7 204.3c0 0 16.3-18.7 27.7-24.7s0.3-6-3.7-2.5c-1.7 1.5-7.1 6.2-10.4 11.6 -4.3 7.2-5.6 15.8 2.7 20.5 14.7 8.3 24.3-27.4 25-32.2 -7.3 21.2-9 38.8 7.7 18.5l15.3-27.3c0 0-11.7 34-1 34 8.7 0 22.7-24 26.3-36" class="a"/>
    <path d="M215.9 167.6c0 0-2.9 21-5.9 31 7-15.7 22.3-37 25-32.3 2.7 4.7-15.7 27.7-2.3 30.3 13.3 2.7 32.7-49 34-59.3 -5.3 23.7-17.4 54.1-4.5 55.7 6.9 0.8 18.7-12.7 21-19.2" class="a"/>
    <path d="M191 154.3c0 0 4 2 6-2.3 2-4.3-3-6.7-6-4.7C188 149.3 191 154.3 191 154.3z" class="a"/>
    <path d="M249.1 162c0 0 13.2-0.7 18.2-2 5-1.3 6.7-1 6.7-1" class="a"/>
    <path d="M283.7 175.7c0 0 16.3-4 20.7-13.7 4.3-9.7-8-7.1-13.3-1 -5.3 6-16 24-2 27.5 15.7 5.5 33-23.1 33-36.9 0-5.6-6.4-4.9-6.4 0.8 0 5.5 3.1 4.3 9.8 4.3 6.7 0 11.3 5.3 6.3 10.7s-10.8 12.5-3.3 16.7c8 4.5 12-9 12-9" class="a"/>  
  </svg>
</div>
              
            
!

CSS

              
                body {
  width: 100%;
  height: 100vh;
  background-color: #f7f3ed;
}

.llp-face-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#logo {
  position: relative;
  display: block;
  cursor: pointer;
  height: 50vh;
  width: 50vw;
}
  
              
            
!

JS

              
                /* 
  This lazy line is uncomposed!
  Visit http://lazylinepainter.info#composer to compose your masterpiece! 
  */

let el = document.querySelector('#logo') 
let myAnimation = new LazyLinePainter(el, {
  strokeColor: '#cc2d8a',
  strokeWidth: 2,
  ease: 'easeInOutExpo'
});
el.addEventListener('click', paint, false);

function paint(){ 
   myAnimation.paint();
}

paint();
              
            
!
999px

Console