1.0.2 • Published 6 years ago

raf-after v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

raf-after Build Status npm npm downloads

Invoke the callback after the next repaint, while the requestAnimationFrame invokes the callback before the next repaint.

Usage

  1. Install the package npm install raf-after -S
  2. Import the module in the place you want to use:
import rafAfter from 'raf-after';

rafAfter(function () => {
  // do what you want after next repaint
});
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago