# detect-animation-end-helper

> Detect css animation or transition end event type.

Latest version **0.1.0** (published 2016-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install detect-animation-end-helper
pnpm add detect-animation-end-helper
yarn add detect-animation-end-helper
bun add detect-animation-end-helper
```

## 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.1.0 |
| Published | 2016-01-22 |
| First published | 2016-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jay Scott ANDERSON |
| Maintainers | bloodyknuckles |
| Keywords | detect, css, animation, end, event, type |

## Links

- npm: https://www.npmjs.com/package/detect-animation-end-helper
- Repository: https://github.com/bloodyKnuckles/detect-animation-end-helper
- Homepage: https://github.com/bloodyKnuckles/detect-animation-end-helper#readme
- Issues: https://github.com/bloodyKnuckles/detect-animation-end-helper/issues
- npm.io page: https://npm.io/package/detect-animation-end-helper

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-01-22

## README

# detect-animation-end-helper

A helper script to detect the event type that fires on end when using either css animation or transition methods.

Inspired by [Detecting CSS Animation Completion with JavaScript](https://davidwalsh.name/css-animation-callback) .

### example

```
var eventType = require('detect-animation-end-helper')

var anim = document.querySelector('#anim')

var animevent = eventType() // animation is default
animevent && anim.addEventListener(animevent, function(evt) {
  console.log('animation complete')
})

var trans = document.querySelector('#trans')

var transevent = eventType('transition')
transevent && trans.addEventListener(transevent, function(evt) {
  console.log('transition complete')
})

```

### install

`npm install detect-animation-end-helper`

### license

MIT

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