# has-transitions

> Check for transition support

Latest version **0.3.0** (published 2013-08-23) · BSD license · 0 weekly downloads

## Install

```sh
npm install has-transitions
pnpm add has-transitions
yarn add has-transitions
bun add has-transitions
```

## 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.3.0 |
| Published | 2013-08-23 |
| First published | 2013-08-23 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Anthony Short |
| Maintainers | anthonyshort |
| Keywords | component, browserify, css, transitions |

## Links

- npm: https://www.npmjs.com/package/has-transitions
- Repository: https://github.com/anthonyshort/has-transitions
- npm.io page: https://npm.io/package/has-transitions

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2013-08-23

## README

# has-transitions

  Determine if an element has transitions

## Installation

    $ component install anthonyshort/has-transitions

## API

    var hasTransitions = require('has-transitions');
    var cssEmitter = require('css-emitter');

    if(hasTransitions(el)) {
      cssEmitter(el).bind(onTransitionEnd);
    }
    else {
      onTransitionEvent();
    }

## Methods

### hasTransitions([el])

Determine if an element has any transition properties. If the browser doesn't
support transitions this will always return false. `el` defaults to `document.body`.

## Properties

### hasTransitions.support

Boolean for whether the browser supports transitions at all

### hasTransitions.property

Get the prefixed property name to use for transitions

## License

  MIT

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