mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
361 B
TypeScript
22 lines
361 B
TypeScript
import { Options } from "jquery-animate-scroll";
|
|
|
|
// basic usage
|
|
$('a').animateScroll();
|
|
|
|
$('#article-1').scrollHere();
|
|
|
|
$.scrollTo($('#article-1'));
|
|
|
|
// with options
|
|
const options: Options = {
|
|
$container: $('body'),
|
|
speed: 1000,
|
|
offset: -100
|
|
};
|
|
|
|
$('a').animateScroll(options);
|
|
|
|
$('#article-1').scrollHere(options);
|
|
|
|
$.scrollTo($('#article-1'), options);
|