scroll-to

WebJar for scroll-to

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

scroll-to
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

scroll-to
WebJar for scroll-to
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/component/scroll-to

Download scroll-to

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm » component-raf jar 1.2.0
org.webjars.npm : component-tween jar 1.2.0

Project Modules

There are no modules declared in this project.

scroll-to

Smooth window scroll to position with requestAnimationFrame and Tween.

Installation

$ component install component/scroll-to

API

scrollTo(x, y, [options])

Scroll to the given point (x, y) with the given options:

  • ease easing function defaulting to "out-circ" (view ease for more)
  • duration animation duration defaulting to 1000
var scrollTo = require('scroll-to');

scrollTo(500, 1200, {
  ease: 'out-bounce',
  duration: 1500
});

License

MIT

org.webjars.npm

Components

modular components for component

Versions

Version
0.0.2