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 id="face-wrap">
  <svg version="1.1" id="face" xmlns="" xmlns:xlink="" x="0px" y="0px" viewBox="0 0 100 100" style="enable-background:new 0 0 100 100;" xml:space="preserve" data-llp-composed="true"> 
  <g id="eyes">
  <circle data-llp-id="llpface-0"  class="st0" cx="50" cy="49.7" r="48" data-llp-duration="1000" data-llp-ease="easeExpoOut"/>
  <path data-llp-id="llpface-1"  d="M19.8,32.9c0,0,1.9,4.4,6.1,4.4c4.2,0,6.1-4.4,6.1-4.4s1.7,4.4,6.1,4.4c4.4,0,6.1-4.4,6.1-4.4s2,4.4,6.1,4.4
    s6.1-4.4,6.1-4.4s1.8,4.4,6.1,4.4c4.3,0,6.1-4.4,6.1-4.4s2.5,4.4,6.1,4.4c3.6,0,6.1-4.4,6.1-4.4" data-llp-duration="1000" data-llp-delay="1000"  />
    <path data-llp-id="llpface-2" d="M40.2,57.2c0,0-1.6-6.2-7.7-6.2c-5.2,0-7.7,6.2-7.7,6.2" data-llp-duration="800" data-llp-ease="easeExpoInOut" data-llp-delay="1200" />
    <path data-llp-id="llpface-3" d="M75.3,56.8c0,0-2.2-5.8-7.2-5.8c-5,0-7.2,5.8-7.2,5.8" data-llp-duration="800" data-llp-delay="1200" />
  <path data-llp-id="llpface-4" d="M32.9,67.1c0,0,3.9,13.5,16.9,13.5c13.8,0,16.9-13.5,16.9-13.5" data-llp-duration="800" data-llp-delay="1200" />
              $easeBackOut: cubic-bezier(0.175, 0.885, 0.32, 1.275)

  width: 100%
  height: 100vh
  background-color: #f7f3ed

  display: flex
  align-items: center
  justify-content: center
  width: 100%
  height: 100%
  transform: translate3d(0, 0, 0)
  transition: transform 0s $easeBackOut
    transition-duration: 1s
    transform: translate3d(0, -20px, 0)
      animation: levitate 3s $easeBackOut infinite
        animation: levitate 3s ease-in-out infinite
        animation: levitate 3s $easeBackOut infinite

      @keyframes levitate
          transform: translate3d(0, 0, 0)
          transform: translate3d(0, -3%, 0)
          transform: translate3d(0, 0, 0)

  overflow: visible
  position: relative
  display: block
  width: 300px
  cursor: pointer
    stroke: #f7f3ed
    fill: none
    stroke-width: 3
    stroke-linecap: round
    stroke-linejoin: round
    stroke: #CC2D8A
    stroke-width: 0.5
    fill: #CC2D8A
    fill-opacity: 0
    transition: fill-opacity 0s ease-in-out
      transition-duration: 0.5s
      fill-opacity: 1
              // svg prepared using Lazy Line Composer

let wrap = document.querySelector("#face-wrap");
let el = document.querySelector("#face");

let myAnimation = new LazyLinePainter(el, {
  ease: "easeInOutQuad"

// Timeline Events

myAnimation.on("start", event => {

myAnimation.on("complete", event => {

// Path Events

myAnimation.on("start:llpface-0", event => {

myAnimation.on("complete:llpface-0", event => {

el.addEventListener("click", paint, false);

function paint() {


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