mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #33033 from pea3nut/master
[moveto 1.8.0] update moveto v1.7.0 -> v1.8.0
This commit is contained in:
Vendored
+6
-1
@@ -1,6 +1,7 @@
|
||||
// Type definitions for moveto 1.7
|
||||
// Type definitions for moveto 1.8
|
||||
// Project: https://github.com/hsnaydd/moveTo
|
||||
// Definitions by: Rostislav Shermenyov <https://github.com/shermendev>
|
||||
// pea3nut <https://github.com/pea3nut>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare class MoveTo {
|
||||
@@ -66,6 +67,10 @@ declare namespace MoveTo {
|
||||
* Ease function name
|
||||
*/
|
||||
easing?: string;
|
||||
/**
|
||||
* The container been computed and scrolled
|
||||
*/
|
||||
container?: Window | HTMLElement;
|
||||
/**
|
||||
* The function to be run after scrolling complete. Target passes as the first argument
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,7 @@ const options: MoveTo.MoveToOptions = {
|
||||
tolerance: 70,
|
||||
duration: 300,
|
||||
easing: "easeOutQuart",
|
||||
container: Math.random() > 0.5 ? window : document.createElement('div'),
|
||||
callback: () => {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user