123

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.

            
              <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="200 000 800 600">
 <defs id="defs30">
    <filter id="water">
      <feTurbulence baseFrequency="0.02" numOctaves="1" seed="1" type="turbulence" result="turbulence">
        <animate attributeName="baseFrequency" values="0.02; 0.01; 0.02;" repeatCount="indefinite" dur="20s" begin="0"></animate>
      </feTurbulence>
      <feDisplacementMap in="SourceGraphic" in2="turbulence" xChannelSelector="R" yChannelSelector="B" scale="20" result="displacement"></feDisplacementMap>
    </filter>
  <g id="bonsai">
    <path d="m509.21 255.42l9.98-3.669c-5.853 10.179-9.98 3.669-9.98 3.669" class="leaf" fill="#8a0" fill-rule="evenodd"/>
   <path d="m607.32 207.45c-53.36 17.344.966 49.545-1.029 52.45-2.232 9.541-12.926 16.338-20.529 18.564-7.604 2.226-9.981-2.923-9.283-14.09-1.919 7.154-2.291 15.531 3.773 15.967 6.06.436 1.153 5.75-2.309 7.822-3.462 2.072-7.22 3.288-13.195 4.135-.477-7.418-5.383-14.649-5.645-31.14-1.309 12.475 4.054 22.2 3.039 29.35-3.685-4.02-6.972-8.226-30.963-5.521 28.21-.98 29.508 9.318 29.508 9.318 15.464 2.919 27.493-7.898 28.23-11.742 11.717-3 16.353-2.234 18.252 3.369 4.455 11.08 16.972 22.788 15.6 34.527-.837 9.476-33.82 20.869-35.07 30.21.02.353.069.69.139 1.014h-32c0 0-9.1 3.353-10.08 9.04-.98 5.688 10.08 18.527 10.08 18.527h41.35 41.35c0 0 11.06-12.84 10.08-18.527-.98-5.688-10.08-9.04-10.08-9.04h-21.523c5.43-9.146 19.366-20.15 18.771-29.963-.669-7.685-14.198-23.429-17.03-30.611-2.149-7.85 2.493-15.659 8.381-20.473 6.463-4.984 24.91-.438 24.91-.438 0 0 8.28-9.79 11.03-16.256-4.06 8.205-13.742 15.431-23.16 11.969-6.851-2.655-17.848-.58-17.848-.58 0 0-10.649 16.848-13.713 8.547-2.297-5.373 4.072-9.02 3.324-15.316-.748-6.298-54.12-30.941-4.369-51.12" id="path8" fill="#483e37" fill-rule="evenodd"/>
   <g id="g12" fill="#8a0" color-rendering="auto" color-interpolation-filters="linearRGB" shape-rendering="auto" fill-rule="evenodd" image-rendering="auto" color-interpolation="sRGB" color="#000">
    <path id="path14" isolation="auto" mix-blend-mode="normal" d="m546.57 275.03c1.955-1.331 5.145-1.087 5.839 1.546.018 1.726 4.089 2.503.971 4.02-1.776.765-3.424.879-3.971 2.744-2.8 1.607-6.657-.227-9.159 2.132-.948 2.025-3.81-.127-5.707.568-4.12.185-8.115 1.586-12.26 1.431-5.627-2.553-11.934 1.194-17.546-1.366-2.24-1.829-5.261.216-7.755-1.479-2.642-1.157-5.234-2.9-8.246-2.708-.924-1.298 2.986-3.221.043-2.629-2.677.083-.963-3.278 1.154-2.839 1.822.122 2.906-1.839 2.799-2.765 5.6.68 10.513-3.914 16.13-2.575 2.349 1.117 4.385-1.573 6.934-1.126 4.103-.161 8.099 1.284 12.209.998 4.12-1.949 8.311.723 12.378 1.46 2.284 1.052 5.942-1.733 6.624 1.804l-.108.408-.325.374" solid-opacity="1" solid-color="#000000"/>
    <path id="path16" isolation="auto" mix-blend-mode="normal" d="m593.85 235.77c-4.577 1.855-8.914 3.8-14.05 1.421-3.462 2.758-7.06 4.684-11.377 5.763-1.361 2.22 0 3.932-3.61 2.984-4.794 1.25 1.893 4.377.735 3.684-3.512 5.058 10.347 2.42 4.363 4.835-5.43 2.584-10.981 3.274-16.8 3.626-4.906.988-8.889.103-12.507 3.639-3.973-.364-9.283 3.89-2.712 4.769 2.987.808 5.31 6.275 8.482 2.713 4.301.333 9.68-3.883 11.916.699 4.354-4.242 6.789 4.996 10.764.784 6.02.812 13.294-4.208 17.521-5.52-.234-2.604 8.306-4.77 2.737-5.748-2.461-.898 5.696-5.118 7.461-2 6.27 1.858 13.07 1.991 19.449 4.127 4.703-.652 9.601-1.47 14.271-2.501 4.525-1.545 9.105 4.418 13.952 2.784 7.836 3.421 15.202-5.061 23.14-3.145 5.079-.874 10.649 6.557 14.451 2.432 4.233-.6 8.04-1.03 10.762-3.86 5.849-1-1.755-10.191-5.34-6.623-2.634-5.284-9.402-2.716-13.196-6.095-4.839.468-10.3-.966-15.212.532-2.842 2.15-5.308 7.212-8.913 2.427-4.376-3.833-9.887-.695-12.709 1.369 1.085.6 1.382-4.786-2.258-3.418-4.197 2.378-2.659-3.874-7.39-3.284-5.171-.963-11.414 1.831-15.766-1.559-4.214-3.73-10.253-.353-14.608-3.84-1.134-.499-2.32-.923-3.554-.992" solid-opacity="1" solid-color="#000000"/>
    <path id="path18" isolation="auto" mix-blend-mode="normal" d="m630.21 202.98c1.835-1.619 4.212-.051 3.04 2.219-.074 1.374-1.909 2.762.168 3.151 1.274 2.039-2.682 2.123-4.02 2.587-.501.433-.73 2.585-2.388 1.81-1.737-.855-3.336.55-4.02 1.641-4.24-1.111-8.438-2.639-12.879-2.63-2.338-1.129-5.03-1.031-7.452-.241-2.285.674-4.644-.267-6.473-1.626-3.719 1.276-7.514-.231-11.12-1.146-1.291-.724-3.823.212-4.267-1.103.244-1.037 2.652-2.554.168-1.971-2.062.488-1.367-2.624.512-1.945 1.906-.377 5.207.827 6.068-1.434-.478-1.51 3.501.381 3.133-2.024-.389-3.124 3.281.216 4.499-1.311 4.316-2.081 9.1-.432 13.589-.066 1.981.536 3.752-.635 5.67-.46 2.177.697 2.903 3.831 5.494 3.667 1.998-.564 3.985-.066 6.05-.006 1.185.284 3.767-.169 4.226.889" solid-opacity="1" solid-color="#000000"/>
    <path id="path20" isolation="auto" mix-blend-mode="normal" d="m594.19 222.72c1.924-.279 5.296-1.422 6.281.741-.476 1.185-.943 1.699.448.797 1.847.788.147 5.095-1.839 4.839-1.328 1.246-2.046 3.816-4.593 2.781-2.57-.744-4.896.326-6.574 2.14-3.158.273-4.861-3.528-7.985-3.572-3.215-.007-5.67 3.572-9.02 2.392-2.568-.657-5.12-2.986-7.866-1.71-3.05 1.908-7.605 1.966-10.05-.959-2.441-1.429-1.94 5.083-4.54 2.483-1.138-2.059-3.379-3.104-5.442-1.971-2.138.007-2.492-3.31-1.559-3.338-2.156.431-4.445-1.302-5.05-3.308 1.913.3 3.912-1.059 5.03-2.96 1.362-2.396 4.045-2.887 6.543-2.205 2.769.788 3.875-2.224 6.182-2.785 2.467-.624 4.771.864 7.154 1.098 2.697-.864 5.38-.303 7.827 1.151 2.566 1.744 5.27-.162 7.995.143 3.079.227 6.388.801 8.774 2.906 2.044-.259 3.806-3.133 6.378-1.74 1.246.261 2.78 1.786 1.913 3.077" solid-opacity="1" solid-color="#000000"/>
   </g>
  </g>
 </defs>
 <use xlink:href="#bonsai" id="use4201" transform="matrix(.91364 0 0 .91364 51.06-6.234)" width="1200" height="600"/>
 <use id="mirror" xlink:href="#bonsai" style="filter: url(#water)" transform="matrix(1 0 0-.445 51.06 509.91)" width="1200" height="600" opacity=".3"/>
</svg>


<a target="_blank" href="https://twitter.com/kamildyrek"><svg style="width:2em;height:2em;position:fixed;top:1em;left:1em;opacity:.8;" viewBox="0 0 24 24"><path fill="#483e37" d="M17.71,9.33C18.19,8.93 18.75,8.45 19,7.92C18.59,8.13 18.1,8.26 17.56,8.33C18.06,7.97 18.47,7.5 18.68,6.86C18.16,7.14 17.63,7.38 16.97,7.5C15.42,5.63 11.71,7.15 12.37,9.95C9.76,9.79 8.17,8.61 6.85,7.16C6.1,8.38 6.75,10.23 7.64,10.74C7.18,10.71 6.83,10.57 6.5,10.41C6.54,11.95 7.39,12.69 8.58,13.09C8.22,13.16 7.82,13.18 7.44,13.12C7.81,14.19 8.58,14.86 9.9,15C9,15.76 7.34,16.29 6,16.08C7.15,16.81 8.46,17.39 10.28,17.31C14.69,17.11 17.64,13.95 17.71,9.33M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2Z" /></svg></a>
            
          
!
            
              html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

svg {
  opacity: 0;
}
            
          
!
            
              var tl = new TimelineMax({delay:0.5, repeat:-1, repeatDelay:2});

//banner animation code (only 11 lines)

 tl .set('svg', {opacity: 1})
    .set('.leaf', {y: 30, opacity: 0})
    .set('#mirror', {x: -2})
    .to('.leaf', 1, {y: 32, opacity: 1}, 0)
    .to('.leaf', 6, {x:-20, rotation: 30, ease: Elastic.easeIn.config(1, 0.4)}, 0)
    .to('.leaf', 3, {y: 120, ease: Sine.easeIn}, 3)
    .to('.leaf', 6, {x:-40, rotation: 60, opacity: 0})
            
          
!
999px
🕑 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.

Console