request-animation-frame-polyfill

requestAnimationFrame polyfill support AMD and CommonJS

🙌 Thanks for using request-animation-frame-polyfill: we recommend using new version, 1.x.x. Please check out https://github.com/aluc-io/request-animation-frame-polyfill
Last updated 5 years ago by b6pzeusbc54tvhw5jgpyw8pwz2x6gs .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install request-animation-frame-polyfill 
SYNC missed versions from official npm registry.

request-animation-frame-polyfill

npm version

requestAnimationFrame polyfill library for nodejs and old browsers.

Install

$ yarn add request-animation-frame-polyfill

Usage

import { requestAnimationFrame, cancelAnimationFrame } from 'request-animation-frame-polyfill'

let id: number
const hello = (time: number) => {
  console.log('hello:' + time)
  id = requestAnimationFrame(hello)
}

id = requestAnimationFrame(hello)
setTimeout( () => cancelAnimationFrame(id), 100)

Build

Build:

$ yarn build

Example

$ cd example
$ npx ts-node main.ts

Deploy

$ npm login
$ npm publish

Current Tags

  • 1.1.2                                ...           latest (4 years ago)
  • 1.1.1-rc.4                                ...           rc (4 years ago)

33 Versions

  • 1.1.2                                ...           4 years ago
  • 1.1.1 [deprecated]           ...           4 years ago
  • 1.1.1-rc.4                                ...           4 years ago
  • 1.1.1-rc.3                                ...           4 years ago
  • 1.1.1-rc.2                                ...           4 years ago
  • 1.1.1-rc.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.1.0-rc.14                                ...           4 years ago
  • 1.1.0-rc.13                                ...           4 years ago
  • 1.1.0-rc.12                                ...           4 years ago
  • 1.1.0-rc.11                                ...           4 years ago
  • 1.1.0-rc.10                                ...           4 years ago
  • 1.1.0-rc.9                                ...           4 years ago
  • 1.1.0-rc.8                                ...           4 years ago
  • 1.1.0-rc.7                                ...           4 years ago
  • 1.1.0-rc.6                                ...           4 years ago
  • 1.1.0-rc.5                                ...           4 years ago
  • 1.1.0-rc.4                                ...           4 years ago
  • 1.1.0-rc.3                                ...           4 years ago
  • 1.1.0-rc.2                                ...           4 years ago
  • 1.1.0-rc.1 [deprecated]           ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.1-rc.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-rc.6                                ...           5 years ago
  • 1.0.0-rc.4                                ...           5 years ago
  • 1.0.0-rc.3                                ...           5 years ago
  • 0.1.5 [deprecated]           ...           5 years ago
  • 1.0.0-rc.2                                ...           5 years ago
  • 1.0.0-rc.1                                ...           5 years ago
  • 0.1.3 [deprecated]           ...           9 years ago
  • 0.1.2 [deprecated]           ...           9 years ago
Downloads
Today 1
This Week 1
This Month 34
Last Day 0
Last Week 33
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |