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;
    

    Install

    npm i raf-dom

    DownloadsWeekly Downloads

    5

    Version

    1.1.2

    License

    ISC

    Unpacked Size

    2.19 kB

    Total Files

    3

    Last publish

    Collaborators

    • qiqiboy