@tsparticles/updater-rotate
Version:
tsParticles particles rotate updater
17 lines (16 loc) • 468 B
JavaScript
import { isNull, loadProperty, loadRangeProperty, } from "@tsparticles/engine";
export class RotateAnimation {
decay = 0;
enable = false;
speed = 0;
sync = false;
load(data) {
if (isNull(data)) {
return;
}
loadProperty(this, "enable", data.enable);
loadRangeProperty(this, "speed", data.speed);
loadRangeProperty(this, "decay", data.decay);
loadProperty(this, "sync", data.sync);
}
}