https://github.com/onface/animation-frame
https://github.com/onface/animation-frame
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/onface/animation-frame
- Owner: onface
- Created: 2018-07-31T02:47:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T10:00:41.000Z (almost 7 years ago)
- Last Synced: 2025-02-17T09:43:14.410Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# face-animation-frame
## polyfill
```html
var some = requestAnimationFrame(function () {
console.log("do something")
})
cancelAnimationFrame(some)```
## npm
```js
require('face-animation-frame')
var some = requestAnimationFrame(function () {
console.log("do something")
})
cancelAnimationFrame(some)
```## fucking-weapp
[🖕 weapp](https://github.com/onface/fucking-weapp#requestanimationframe)
```js
var animationFrame = require('face-animation-frame')
var some = animationFrame.request(function () {
console.log("do something")
})
animationFrame.cancel(some)
```