Socket
Socket
Sign inDemoInstall

granim

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    granim

Create fluid and interactive gradients animations with this small js library.


Version published
Weekly downloads
1.8K
increased by17.5%
Maintainers
2
Install size
651 kB
Created
Weekly downloads
 

Changelog

Source

v2.0.0

Features

  • Add custom direction (rhanb)
  • Add support for other color types: rgb, rgba, hsl, hsla
  • Add custom color positions
  • Remove opacity property, use rgba or hsla alpha color channel if you want to use opacity in the colors

Improvements

  • Add image.strecthMode property 'none' to allow strecthMode on only one axis
  • Add ESLint for better code consistency
  • Add tests and doc updates for all the new feature

Miscellaneous

  • Update local server config to latest Hapi version
  • Add multiple API versions page

Readme

Source

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>

Keywords

FAQs

Last updated on 11 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc