Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bubbles-animation

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bubbles-animation

Simple <canvas> bubbles animation.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Bubbles Animation

Simple <canvas> bubbles animation.

See this demo.

Getting Started

  • Install from NPM;
npm install --save-dev bubbles-animation
  • On your page's script just use the animate function passing a <canvas /> element or a selector to get it.
import animate from 'bubbles-animation';

animate(document.querySelector('canvas'), {
  quantity: 1, // {Range} define quantity bubbles generated on each tick animation.

  interval: 3, // {number} Interval to tick animation. Skip this frame to generate bubbles.

  size: [5, 50], // {Range} define bubbles size.

  color: { // { A: Range, G: Range, B: Range, A: Range } Define bubbles color.
    R: 0,
    G: [125, 255],
    B: [125, 255],
    A: .65
  }
});

Changelog

Detailed changes for each release are documented in the release notes.

FAQs

Package last updated on 16 Sep 2017

Did you know?

Socket

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