UNPKG

@tsparticles/engine

Version:

Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

27 lines (26 loc) 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Parallax = void 0; const TypeUtils_js_1 = require("../../../../Utils/TypeUtils.js"); class Parallax { constructor() { this.enable = false; this.force = 2; this.smooth = 10; } load(data) { if ((0, TypeUtils_js_1.isNull)(data)) { return; } if (data.enable !== undefined) { this.enable = data.enable; } if (data.force !== undefined) { this.force = data.force; } if (data.smooth !== undefined) { this.smooth = data.smooth; } } } exports.Parallax = Parallax;