mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
17 lines
277 B
TypeScript
17 lines
277 B
TypeScript
import jump = require('jump.js');
|
|
|
|
const node = document.querySelector('.target')!;
|
|
jump(node);
|
|
jump('.target');
|
|
jump('.target', {
|
|
duration: 1000,
|
|
});
|
|
jump('.target', {
|
|
duration: 200,
|
|
offset: 10
|
|
});
|
|
jump(100);
|
|
jump(-100, {
|
|
callback: () => { console.log('Done!'); }
|
|
});
|