# bouncing-ball

> Bouncing balls everywhere

Latest version **0.0.6** (published 2017-11-29) · 0 weekly downloads

## Install

```sh
npm install bouncing-ball
pnpm add bouncing-ball
yarn add bouncing-ball
bun add bouncing-ball
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-11-29 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Patrick Mooney |
| Maintainers | patmooney |
| Keywords | loading, ajax, loader, javascript, animation |

## Links

- npm: https://www.npmjs.com/package/bouncing-ball
- Repository: https://github.com/patmooney/bouncing-ball
- Homepage: https://github.com/patmooney/bouncing-ball#readme
- Issues: https://github.com/patmooney/bouncing-ball/issues
- npm.io page: https://npm.io/package/bouncing-ball

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-11-29
- 0.0.5 — 2017-11-14
- 0.0.4 — 2017-09-04
- 0.0.3 — 2017-09-04
- 0.0.2 — 2017-09-04

## README

### BouncingBall

A pure JS loading animation

``` javascript

    var BouncingBall = require('bouncing-ball');
    
    var myBalls = new BouncingBall(
        document.getElementById('container'),
        {
            maxTop: 80, // max height in px
            numberOfBalls: 3,
            ballColour: ["pink","green","#00ffee"], // scalar or array
            ballRadius: 10 // px
        }
    );
    
    myBalls.bounce(); // start animation

    // ... some time later ...

    myBalls.unbounce(); // stop animation

```

![Example](https://github.com/patmooney/bouncing-ball/raw/master/example.gif)

# Developers

## To build

    npm install
    webpack

---
_Source: https://npm.io/package/bouncing-ball · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
