Aucune description

tum 30f7226d9a first commit il y a 2 ans
..
dist 30f7226d9a first commit il y a 2 ans
docs 30f7226d9a first commit il y a 2 ans
test 30f7226d9a first commit il y a 2 ans
.eslintrc.js 30f7226d9a first commit il y a 2 ans
.travis.yml 30f7226d9a first commit il y a 2 ans
CHANGELOG.md 30f7226d9a first commit il y a 2 ans
CONTRIBUTING.md 30f7226d9a first commit il y a 2 ans
LICENSE 30f7226d9a first commit il y a 2 ans
README.md 30f7226d9a first commit il y a 2 ans
bower.json 30f7226d9a first commit il y a 2 ans
gulpfile.js 30f7226d9a first commit il y a 2 ans
index.js 30f7226d9a first commit il y a 2 ans
karma.conf.js 30f7226d9a first commit il y a 2 ans
package.json 30f7226d9a first commit il y a 2 ans
standalone.js 30f7226d9a first commit il y a 2 ans

README.md

Granim.js Build Status codecov gitter

Create fluid and interactive gradients animations with this small (< 17 kB) js library.

See the demo site.

Install

From NPM

  • Run npm install granim --save

From Bower

  • Run bower install granim

Static

How to use

<!-- 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>