# fade-promise

> Promisified fade in es6 using requestAnimationFrame

Latest version **1.0.2** (published 2017-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install fade-promise
pnpm add fade-promise
yarn add fade-promise
bun add fade-promise
```

## 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.2 |
| Published | 2017-12-11 |
| First published | 2017-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Olivier Gasc |
| Maintainers | ~oliv |
| Keywords | fade, html, css, es6, transition, promise, requestAnimationFrame |

## Links

- npm: https://www.npmjs.com/package/fade-promise
- Repository: https://github.com/Oliv/fade-promise
- Homepage: https://github.com/Oliv/fade-promise#readme
- Issues: https://github.com/Oliv/fade-promise/issues
- npm.io page: https://npm.io/package/fade-promise

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-12-11
- 1.0.1 — 2017-12-06
- 1.0.0 — 2017-11-30

## README

# fade-promise [![NPM version](https://badge.fury.io/js/fade-promise.svg)](https://npmjs.org/package/fade-promise) [![Build Status](https://travis-ci.org/Oliv/fade-promise.svg?branch=master)](https://travis-ci.org/Oliv/fade-promise)

Promisified fade in es6, using requestAnimationFrame

## Installation

```sh
$ npm install --save fade-promise
```

## Usage

```js
import fadePromise from 'fade-promise';

fadePromise(element, to[, duration]).then((element, to, duration) => {
  console.log('done !');
});
```

## API

The default `duration` is `300` ms.

### fade(el, opacity[, duration])

Returns a `Promise`.

## License

MIT © [Olivier Gasc](https://github.com/Oliv)

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