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.

26 lines 656 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initVevet = initVevet; var core_1 = require("../core"); var env_1 = require("../internal/env"); /** * @group Utils */ function initVevet() { var _a; if (!env_1.isBrowser) { return undefined; } if (window.vevet5) { return window.vevet5; } var coreProps = (_a = window.VEVET_PROPS) !== null && _a !== void 0 ? _a : {}; var core = (0, core_1.Core)(coreProps); window.vevet5 = core; return window.vevet5; } // auto initialize if (env_1.isBrowser) { window.vevet5 = initVevet(); } //# sourceMappingURL=initVevet.js.map