vevet
Version:
Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.
53 lines • 1.39 kB
JavaScript
var _a;
import { EaseOutCubic } from 'easing-progress';
import { initVevet } from '../../global/initVevet';
import { clamp } from '../../utils';
export const STATIC_PROPS = {
__staticProp: true,
container: null,
eventsEmitter: null,
activeIndex: 0,
};
export const MUTABLE_PROPS = {
__mutableProp: true,
slides: false,
containerSize: 'auto',
slidesToScroll: 1,
direction: 'horizontal',
centered: false,
loop: false,
gap: 0,
lerp: ((_a = initVevet()) === null || _a === void 0 ? void 0 : _a.mobile) ? 1 : 0.3,
freemode: false,
rewind: false,
stickOnResize: true,
friction: 0,
edgeFriction: 0.7,
duration: 500,
easing: EaseOutCubic,
swipe: true,
grabCursor: false,
swipeSpeed: 1,
swipeAxis: 'auto',
followSwipe: true,
shortSwipes: true,
shortSwipesDuration: 300,
shortSwipesThreshold: 30,
swipeFriction: false,
swipeThreshold: 5,
swipeMinTime: 0,
swipeInertiaDuration: (distance) => clamp(distance, 500, 2000),
swipeInertiaRatio: 0.5,
wheel: false,
wheelSpeed: 1,
wheelAxis: 'auto',
followWheel: true,
wheelThrottle: 'auto',
stickOnWheelEnd: true,
stickOnWheelEndThreshold: 30,
slideSize: 'auto',
interval: null,
intervalDirection: 'next',
};
export const LERP_APPROXIMATION = 0.000001;
//# sourceMappingURL=props.js.map