# jounce

> Bounce elements with javscript

Latest version **1.0.0** (published 2019-06-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install jounce
pnpm add jounce
yarn add jounce
bun add jounce
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-13 |
| First published | 2019-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Amit Khonde |
| Maintainers | amitkhonde |
| Keywords | npm, jounce, bouce, elements, javascript |

## Links

- npm: https://www.npmjs.com/package/jounce
- npm.io page: https://npm.io/package/jounce

## Recent versions

- 1.0.0 (latest) — 2019-06-13

## README

# jounce
Bounce HTML elements using JavaScript
# How to use
* Install jounce
```npm install --save-dev jounce```
* Add three HTML elemnets to your markup
  * jounceContainer // *Area for element to bounce.*
  * jounceMainDiv // *Element used for applying animaion.*
  * jounceSubDiv // *Content inside this element will be bounced.*</br>
  ```
  <div id="container" class="container">
      <div id="mainDiv" class="main-div">
          <div id="subDiv" class="sub-div">
              <!-- content you want to bounce -->
          </div>
      </div>
  </div>
  ```
* Add styles
```
.container {
    position: relative;
}
.main-div {
    position: absolute;
}

.sub-div {
    position: absolute;
}
```
* Import and initialize jounce
```
 import * as jounce from 'jounce';

 options = {
   noOfBounces: 3; // number of bounces for element default 2.
   time: 2; // duration of the animation. default 3.
 }
 jounce.init({ options })
```
* Bounce the element
```
jounce.animate();
```

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