mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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!'); }
|
|
});
|