Thanks for sharing such a great resource. I set up basic document to play with the code and i've run into a problem - the lines all animate, but they animate down the div and then break out at the bottom in one long vertical line made up of the five lines. I can't seem to work out the problem. Because it animates, I know all the JS files are being called OK.
Below is my code for the JS and CSS files. Github won't let me include the HTML code? Any help would be wonderful.
var wrapper = document.getElementById("wrapper");
var lineMaker = new LineMaker({
element: wrapper,
parent: {element: wrapper, position: 'prepend'},
position: 'absolute',
lines: [
{top: 0, left: '10%', width: 13, height: '100vh', color: '#5ccc93', hidden: true, animation: { duration: 1000, easing: 'easeInOutSine', delay: 400, direction: 'TopBottom' }},
{top: 0, left: '30%', width: 16, height: '100vh', color: '#5ccc93', hidden: true, animation: { duration: 1000, easing: 'easeInOutQuad', delay: 100, direction: 'TopBottom' }},
{top: 0, left: '50%', width: 9, height: '100vh', color: '#5ccc93', hidden: true, animation: { duration: 1000, easing: 'easeInOutQuad', delay: 0, direction: 'TopBottom' }},
{top: 0, left: '70%', width: 30, height: '100vh', color: '#5ccc93', hidden: true, animation: { duration: 1000, easing: 'easeOutSine', delay: 400, direction: 'TopBottom' }},
{top: 0, left: '90%', width: 17, height: '100vh', color: '#5ccc93', hidden: true, animation: { duration: 1000, easing: 'easeOutSine', delay: 300, direction: 'TopBottom' }}
]
});
setTimeout(function() {
lineMaker.animateLinesIn();
}, 250);
width: 900px;
height: 1400px;
background-color: #e6e6e6;
overflow: hidden;