UNPKG

@furman1331/page-scroller

Version:

Amazing plugin for creating smooth scroll on your website

28 lines (20 loc) 679 B
import type { TScrollingMode, ISection } from '@/types' export class State { container: HTMLElement | null = null sections: ISection[] | null = null activeSlide: number = 0 activeSection: number = 0 scrollMode: TScrollingMode = 'automatic' scrollingSpeed: number = 700 transitionTimingFunction: string = 'ease' isDebug: boolean = false isScrolling: boolean = false isResizing: boolean = false isInitialized: boolean = false isWheelEnabled: boolean = true isKeyboardEnabled: boolean = true isTouchEnabled: boolean = true slidesIdentifyAttribute: string = 'page-scroller-slide' isAllowToScrollThroughSlides: boolean = true } export const state = new State()