|
|
@ -763,6 +763,7 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
if (!this.node.animation) return;
|
|
|
|
if (!this.node.animation) return;
|
|
|
|
|
|
|
|
|
|
|
|
const { component } = this.renderer;
|
|
|
|
const { component } = this.renderer;
|
|
|
|
|
|
|
|
const { outro } = this.node;
|
|
|
|
|
|
|
|
|
|
|
|
const rect = block.get_unique_name('rect');
|
|
|
|
const rect = block.get_unique_name('rect');
|
|
|
|
const stop_animation = block.get_unique_name('stop_animation');
|
|
|
|
const stop_animation = block.get_unique_name('stop_animation');
|
|
|
@ -777,6 +778,7 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
block.builders.fix.add_block(deindent`
|
|
|
|
block.builders.fix.add_block(deindent`
|
|
|
|
@fix_position(${this.var});
|
|
|
|
@fix_position(${this.var});
|
|
|
|
${stop_animation}();
|
|
|
|
${stop_animation}();
|
|
|
|
|
|
|
|
${outro && `@add_transform(${this.var}, ${rect});`}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';
|
|
|
|
const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';
|
|
|
|