raf-dom

1.1.2 • Public • Published

raf-dom

用于浏览器端的requestAnimationFramecancelAnimationFrame的跨浏览器方法

安装

$ npm install --save raf-dom

使用

ES6
import { requestAnimationFrame, cancelAnimationFrame } from 'raf-dom';
commonjs
var requestAnimationFrame = require('raf-dom').requestAnimationFrame,
    cancelAnimationFrame = require('raf-dom').cancelAnimationFrame;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    1
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i raf-dom

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

2.19 kB

Total Files

3

Last publish

Collaborators

  • qiqiboy