@visactor/vrender-animate
Version:
This module provides a graph-based animation system for VRender.
29 lines (23 loc) • 793 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.FadeOut = exports.FadeIn = void 0;
const common_1 = require("./common");
class FadeIn extends common_1.CommonIn {
constructor(from, to, duration, easing, params) {
super(from, to, duration, easing, params), this.keys = [ "opacity", "fillOpacity", "strokeOpacity" ],
this.from = {
opacity: 0,
fillOpacity: 0,
strokeOpacity: 0
};
}
}
exports.FadeIn = FadeIn;
class FadeOut extends common_1.CommonOut {
constructor(from, to, duration, easing, params) {
super(from, to, duration, easing, params), this.keys = [ "opacity", "fillOpacity", "strokeOpacity" ];
}
}
exports.FadeOut = FadeOut;
//# sourceMappingURL=fade.js.map