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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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="section-works">
  <svg version="1.1" id="lines" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="809px" height="2676px" viewBox="0 0 809 8260" enable-background="new 0 0 809 2676" xml:space="preserve">
<path id="path1" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M5.5,0.5v78"/>
<path id="path2" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M5.5,492.5v-78"/>
<path id="path3" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M0.5,492.5h809"/>
<path id="path4" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M804.5,488.5v78"/>
<path id="path5" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M804.5,871.5v78"/>
<path id="path6" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M0.5,949.5h809"/>
<path id="path7" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M5.5,1023.5v-78"/>
<path id="path8" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M5.5,1396.5v78"/>
<path id="path9" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M0.5,1474.5h809"/>
<path id="path10" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M804.5,1470.5v78"/>
<path id="path11" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M803.5,1874.5v78"/>
<path id="path12" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M-0.5,1952.5h809"/>
<path id="path13" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M4.5,2026.5v-78"/>
<path id="path14" fill="none" stroke="#634033" stroke-width="10" stroke-miterlimit="10" d="M6.5,2384.5v134"/>
</svg>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                var path = document.querySelector("#path1");
var l = path.getTotalLength();
TweenMax.set(path, { strokeDasharray: l });

var path2 = document.querySelector("#path2");
var l2 = path2.getTotalLength();
TweenMax.set(path2, { strokeDasharray: l2 });

var path3 = document.querySelector("#path3");
var l3 = path3.getTotalLength();
TweenMax.set(path3, { strokeDasharray: l3 });

var path4 = document.querySelector("#path4");
var l4 = path4.getTotalLength();
TweenMax.set(path4, { strokeDasharray: l4 });

var path5 = document.querySelector("#path5");
var l5 = path5.getTotalLength();
TweenMax.set(path5, { strokeDasharray: l5 });

var path6 = document.querySelector("#path6");
var l6 = path6.getTotalLength();
TweenMax.set(path6, { strokeDasharray: l6 });

var path7 = document.querySelector("#path7");
var l7 = path7.getTotalLength();
TweenMax.set(path7, { strokeDasharray: l7 });

var path8 = document.querySelector("#path8");
var l8 = path8.getTotalLength();
TweenMax.set(path8, { strokeDasharray: l8 });

var path9 = document.querySelector("#path9");
var l9 = path9.getTotalLength();
TweenMax.set(path9, { strokeDasharray: l9 });

var path10 = document.querySelector("#path10");
var l10 = path10.getTotalLength();
TweenMax.set(path10, { strokeDasharray: l10 });

var path11 = document.querySelector("#path11");
var l11 = path11.getTotalLength();
TweenMax.set(path11, { strokeDasharray: l11 });

var path12 = document.querySelector("#path12");
var l12 = path12.getTotalLength();
TweenMax.set(path12, { strokeDasharray: l12 });

var path13 = document.querySelector("#path13");
var l13 = path13.getTotalLength();
TweenMax.set(path13, { strokeDasharray: l13 });

var path14 = document.querySelector("#path14");
var l14 = path14.getTotalLength();
TweenMax.set(path14, { strokeDasharray: l14 });

var lines = new TimelineMax()
  .fromTo(
    path,
    1,
    { strokeDashoffset: l, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path2,
    1,
    { strokeDashoffset: -l2, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path3,
    1,
    { strokeDashoffset: l3, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path4,
    1,
    { strokeDashoffset: l4, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path5,
    1,
    { strokeDashoffset: l5, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path6,
    1,
    { strokeDashoffset: -l6, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path7,
    1,
    { strokeDashoffset: -l7, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path8,
    1,
    { strokeDashoffset: l8, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path9,
    1,
    { strokeDashoffset: l9, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path10,
    1,
    { strokeDashoffset: l10, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path11,
    1,
    { strokeDashoffset: l11, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path12,
    1,
    { strokeDashoffset: -l12, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path13,
    1,
    { strokeDashoffset: -l13, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  )
  .fromTo(
    path14,
    1,
    { strokeDashoffset: l14, ease: Power0.easeNone },
    {
      strokeDashoffset: 0,
      ease: Power0.easeNone
    }
  );
 var scene = new ScrollMagic.Scene({
        triggerElement: ".section-works",
        triggerHook: "onStart"
    })
        .setPin(".section-works")
        .setTween(slides)
              
            
!
999px

Console