Skip to content

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

License

Notifications You must be signed in to change notification settings

nodify-at/granim.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Granim.js

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

See the demo site.

Install

  • Download the script in the dist/ folder

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>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.7%
  • HTML 6.5%
  • CSS 1.8%