| 123456789101112131415161718192021 |
- import { effectTiming } from './utils';
- /**
- * Transform mark from solid to transparent.
- */
- export const FadeOut = (options) => {
- return (from, to, value, coordinate, defaults) => {
- const [shape] = from;
- const { fillOpacity = 1, strokeOpacity = 1, opacity = 1 } = shape.style;
- const keyframes = [
- {
- fillOpacity,
- strokeOpacity,
- opacity,
- },
- { fillOpacity: 0, strokeOpacity: 0, opacity: 0 },
- ];
- return shape.animate(keyframes, effectTiming(defaults, value, options));
- };
- };
- FadeOut.props = {};
- //# sourceMappingURL=fadeOut.js.map
|