Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/has-transitions
Tiny component to detect for transition support
https://github.com/anthonyshort/has-transitions
Last synced: 24 days ago
JSON representation
Tiny component to detect for transition support
- Host: GitHub
- URL: https://github.com/anthonyshort/has-transitions
- Owner: anthonyshort
- Created: 2013-05-20T10:21:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T11:21:15.000Z (about 11 years ago)
- Last Synced: 2024-09-13T14:11:14.235Z (about 2 months ago)
- Language: JavaScript
- Size: 155 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# has-transitions
Determine if an element has transitions
## Installation
$ component install anthonyshort/has-transitions
or via npm for Browserify
$ npm install has-transitions
## API
var hasTransitions = require('has-transitions');
var cssEmitter = require('css-emitter');if(hasTransitions(el)) {
cssEmitter(el).bind(onTransitionEnd);
}
else {
onTransitionEnd();
}## Methods
### hasTransitions([el])
Determine if an element has any transition properties. If the browser doesn't
support transitions this will always return false.If `el` isn't passed it will return a boolean for browser support for transitions.
## License
MIT