sarcadass / granim.js
- понедельник, 5 сентября 2016 г. в 03:14:02
JavaScript
Create fluid and interactive gradients animations with this small (< 10 kB) js library.
Create fluid and interactive gradients animations with this small (< 10 kB) js library.
See the demo site.
dist/
folder<!-- Create a <canvas> element -->
<canvas id="granim-canvas"></canvas>
<!-- Call the script -->
<script src="granim.min.js"></script>
<!-- Create a Granim instance -->
<script>
var granimInstance = new Granim({
element: '#granim-canvas',
name: 'granim',
opacity: [1, 1],
states : {
"default-state": {
gradients: [
['#834d9b', '#d04ed6'],
['#1CD8D2', '#93EDC7']
]
}
}
);
</script>