tsparticles
Version:
Easily create highly customizable particle 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.
21 lines (20 loc) • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Motion = void 0;
const MotionReduce_1 = require("./MotionReduce");
class Motion {
constructor() {
this.disable = false;
this.reduce = new MotionReduce_1.MotionReduce();
}
load(data) {
if (!data) {
return;
}
if (data.disable !== undefined) {
this.disable = data.disable;
}
this.reduce.load(data.reduce);
}
}
exports.Motion = Motion;