Request animation frame (polyfilled if it doesn't exist)
$ npm install @f/raf
var raf = require('@f/raf')
raf(function () {
element.scrollIntoView()
})
fn
- The function to be executed on the next animation frame
Returns: An integer id. Pass this to raf.cancel(id)
if you want to cancel the frame before it happens.
MIT