It is a lib of animation that allows the creation of an animation in the form of a network of moving graphs
bower install animation-graph
- Import the plugin in your html file:
<script type="text/javascript" src="dist/bundle-graph.min.js"></script>
Next:
- Create instance of graph-animation
<script type="text/javascript">
var cores = ['255, 0, 0','191, 85, 236', '0,0,255'];
graphAnimation.animate({
selector: 'demo-canvas',
colors: cores,
speed: 300,
density: 100
});
</script>
Next:
- Create box of animation
<div class="main_container">
<div id="graph-animation" style="height: 809px;">
<canvas id="demo-canvas" width="1920" height="809"></canvas>
</div>
</div>
- Html selector
- Array of colors in RGB scale
- Default: ['191, 85, 236', '255, 0, 0']
- Speed of transition between colors in milliseconds
- Default: 1000 ms
- Number of points per area from 1 to 100
- Default: 40
The MIT License (MIT)
Copyright (c) 2016 Fábio Pereira
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.