# fjandin-transition

> Transition util

Latest version **0.0.3** (published 2016-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install fjandin-transition
pnpm add fjandin-transition
yarn add fjandin-transition
bun add fjandin-transition
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-06-17 |
| First published | 2016-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | René Bischoff |
| Maintainers | fjandin |

## Links

- npm: https://www.npmjs.com/package/fjandin-transition
- Repository: https://github.com/Fjandin/fjandin
- Homepage: https://github.com/Fjandin/fjandin/src/transition#readme
- Issues: https://github.com/Fjandin/fjandin/issues
- npm.io page: https://npm.io/package/fjandin-transition

## Recent versions

- 0.0.3 (latest) — 2016-06-17
- 0.0.2 — 2016-06-16
- 0.0.1 — 2016-06-16

## README

# Transition

Transition between values

## Install
`npm install fjandin-transition`

## Usage
```
const someElement = getElementById('test');
const transition = require('fjandin-transition');
const EASING = transition.EASING;
const promise = transition({
    start: 0,
    end: 100,
    duration: 5000, // ms
    easing: EASING.easeInOutQuad, // (easeInOutQuad, easeInCubic, inOutQuintic)
    callback: (err, value) => {
        someElement.scrollTop = value;
    }
});

// transition is done
promise.then(() => console.log('done'));

// Cancel transition by calling
promise.cancel(); // Will reject the promise
```

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