@flexilla/utilities
Version:
Utilities package for flexilla library
16 lines (14 loc) • 518 B
TypeScript
/**
* Initialize a scroll to top button
* @param triggerElement {string | HTMLElement} the element that triggers the scroll to top
* @param initFrom {number} the scroll position to show the button
* @param target {string | HTMLElement} the target element to scroll to
*/
export declare const initScrollToTop: ({ triggerElement, initFrom, target }: {
triggerElement: string | HTMLElement;
initFrom?: number;
target?: string | HTMLElement;
}) => {
cleanup: () => void;
};
export { }