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;

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i raf-dom

      Weekly Downloads

      4

      Version

      1.1.2

      License

      ISC

      Unpacked Size

      2.19 kB

      Total Files

      3

      Last publish

      Collaborators

      • qiqiboy