Socket
Book a DemoInstallSign in
Socket

glassy-worms

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

glassy-worms

Beautiful worms on background

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Glassy worms

Beautiful worms on background

Install

NPM:

npm install glassy-worms

Bower:

bower install glassy-worms

Files: dev, min

Releases: all

Usage

Requires jQuery (>1.6) and Sketch.js

Default usage

$('body').glassyWorms();

With options

$('body').glassyWorms({
	colors: ['#000', '#f00'],
	numParticles: 800
});

Options

  • number, "auto" numParticles — Nums of worms on element. Default: "auto"
  • number tailLength — Worm's tail length. Default: 12
  • number maxForce — Moving force. Default: 8
  • number friction — Frictions. Default: 0.75
  • number gravity — Gravity. Default: 9.81
  • number interval — Moving speed. Default: 3
  • array colors — Array of worm's colors. Default: ["#fff"]
  • HTML object element — Element for animating. Default: <canvas/>
  • string className — Classname of animating element. Replaces element option, complements id option
  • string id — ID of animating element. Replaces element option, complements className option
  • boolean useStyles — Flag for using default styles for animating element. Default: true

Default styles

position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;

Methods

$('body').glassyWorms('destroy');
  • stop — Stops animating
  • start — Resume animating
  • clear — Clear screen
  • destroy — Remove worms

FAQs

Package last updated on 15 Jun 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.