vevet
Version:
Vevet is a JavaScript library for creative development that simplifies crafting rich interactions like split text animations, carousels, marquees, preloading, and more.
23 lines • 539 B
JavaScript
import { Core } from '../core';
import { isBrowser } from '../internal/env';
/**
* @group Utils
*/
export function initVevet() {
var _a;
if (!isBrowser) {
return undefined;
}
if (window.vevet5) {
return window.vevet5;
}
const coreProps = (_a = window.VEVET_PROPS) !== null && _a !== void 0 ? _a : {};
const core = Core(coreProps);
window.vevet5 = core;
return window.vevet5;
}
// auto initialize
if (isBrowser) {
window.vevet5 = initVevet();
}
//# sourceMappingURL=initVevet.js.map