@f/raf

WebJar for @f/raf

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

f__raf
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

@f/raf
WebJar for @f/raf
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/micro-js/raf

Download f__raf

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/f__raf/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>f__raf</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/f__raf/
implementation 'org.webjars.npm:f__raf:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/f__raf/
implementation ("org.webjars.npm:f__raf:1.0.3")
'org.webjars.npm:f__raf:jar:1.0.3'
<dependency org="org.webjars.npm" name="f__raf" rev="1.0.3">
  <artifact name="f__raf" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='f__raf', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "f__raf" % "1.0.3"
[org.webjars.npm/f__raf "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

raf

Build status Git tag NPM version Code style

Request animation frame (polyfilled if it doesn't exist)

Installation

$ npm install @f/raf

Usage

var raf = require('@f/raf')

raf(function () {
  element.scrollIntoView()
})

API

raf(fn)

  • 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.

License

MIT

Versions

Version
1.0.3