UNPKG

vevet

Version:

Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.

56 lines 1.61 kB
"use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.LERP_APPROXIMATION = exports.MUTABLE_PROPS = exports.STATIC_PROPS = void 0; var easing_progress_1 = require("easing-progress"); var initVevet_1 = require("../../global/initVevet"); var utils_1 = require("../../utils"); exports.STATIC_PROPS = { __staticProp: true, container: null, eventsEmitter: null, activeIndex: 0, }; exports.MUTABLE_PROPS = { __mutableProp: true, slides: false, containerSize: 'auto', slidesToScroll: 1, direction: 'horizontal', centered: false, loop: false, gap: 0, lerp: ((_a = (0, initVevet_1.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: easing_progress_1.EaseOutCubic, swipe: true, grabCursor: false, swipeSpeed: 1, swipeAxis: 'auto', followSwipe: true, shortSwipes: true, shortSwipesDuration: 300, shortSwipesThreshold: 30, swipeFriction: false, swipeThreshold: 5, swipeMinTime: 0, swipeInertiaDuration: function (distance) { return (0, utils_1.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', }; exports.LERP_APPROXIMATION = 0.000001; //# sourceMappingURL=props.js.map