UNPKG

635 BMarkdownView Raw
1# prop-detect
2
3[![Build Status](https://secure.travis-ci.org/chemzqm/prop-detect.svg)](http://travis-ci.org/chemzqm/prop-detect)
4
5 Detect animation properties, it's annoying to install each of them.
6 :smiley:
7
8## Install
9
10 npm i prop-detect -S
11
12## Usage
13
14``` js
15var detect = require('prop-detect')
16var transform = detect.transform
17var transition = detect.transition
18var touchAction = detect.touchAction
19var transitionend = detect.transitionend
20var has3d = detect.has3d // true or false
21```
22
23## API
24
25* `transform` style name
26* `transition` style name
27* `touchAction` style name
28* `transitionend` event name
29* `has3d` true of false