Skip to content

๐ŸŒŒ nodes.js is a nodes/particles animation useable for backgrounds

License

Notifications You must be signed in to change notification settings

rohanrhu/nodes.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

nodes.js

nodes.js is a nodes/particles animation useable for backgrounds

Visit project page for example.

Init

<!-- <nodes.js embedding> -->
<script type="text/javascript" src="js/nodes.js"></script>
<script type="text/javascript">
    var nodesjs = new NodesJs({
        id: 'nodes',
        width: window.innerWidth,
        height: window.innerHeight,
        particleSize: 2,
        lineSize: 1,
        particleColor: [255, 255, 255, 0.3],
        lineColor: [255, 255, 255],
        backgroundFrom: [10, 25, 100],
        backgroundTo: [25, 50, 150],
        backgroundDuration: 4000,
        nobg: false,
        number: window.hasOwnProperty('orientation') ? 30: 100,
        speed: 20,
        pointerCircleRadius: 150
    });
</script>
<canvas id="nodes"></canvas>
<!-- </nodes.js embedding> -->

License

MIT