codrops / linemaker Goto Github PK
View Code? Open in Web Editor NEWA plugin for creating and animating decorative lines on websites.
Home Page: http://tympanus.net/codrops/2016/10/12/animated-decorative-lines/
A plugin for creating and animating decorative lines on websites.
Home Page: http://tympanus.net/codrops/2016/10/12/animated-decorative-lines/
Hi
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.
JAVASCRIPT
(function() {
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);
})();
CSS
width: 900px;
height: 1400px;
background-color: #e6e6e6;
overflow: hidden;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.