title: Scrolling animated timeline using jQuery and ScrollMagic
body: <p><strong>What I currently have</strong></p>
  
  <p>I'm building an HTML/CSS/JS scrolling timeline using jQuery and ScrollMagic (with GSAP plugin). I have the basic timeline functionality working, with timeline events animating as the page scrolls down.</p>
  
  <p><a href="https://jsfiddle.net/abyk4gcj/3/" rel="nofollow">jsFiddle of the page in its current state (scroll down)</a></p>
  
  <p><strong>What I would like to add</strong></p>
  
  <p>My question is regarding the best method of implementing horizontal lines which branch from the center vertical line to each of the timeline events as they fade in. Ideally, the horizontal lines would animate as if being drawn from the center line, but a fade could work as well.</p>
  
  <p>I know that ScrollMagic has the ability to <a href="http://scrollmagic.io/examples/advanced/svg_drawing.html" rel="nofollow">draw SVGs</a>, but I'm unsure if there is a more efficient method. For instance, perhaps using HTML5 canvas or just simple images would make more sense for this application. I'm aiming to keep the page responsive, so that's something to consider.</p>
  
  <p>Any advice or demonstration regarding this topic would be much appreciated.</p>
  
  <p><em>Example of current "event animation", which takes advantage of ScrollMagic and GSAP. I have a block of code like this for each year in the timeline. This is most likely where the horizontal line animations would be added in:</em></p>
  
  <pre><code>var tween1 = new TimelineMax()
      .fromTo("#section1 .left", .5, {left: "10%", opacity: 0, scale: .5}, {left: "0%", opacity: 1, scale: 1})
      .fromTo("#section1 .right", .5, {right: "10%", opacity: 0, scale: .5}, {right: "0%", opacity: 1, scale: 1});
  
  var scene1 = new ScrollMagic.Scene({triggerElement: "#section1 .center #point", triggerHook: 0.5, offset: pointHeight})
      .setTween(tween1)
      .addTo(controller);
  </code></pre>