|
|
@ -775,10 +775,12 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
${rect} = ${this.var}.getBoundingClientRect();
|
|
|
|
${rect} = ${this.var}.getBoundingClientRect();
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const prepare_outro = outro ? `@prepare_outro(${this.var}, ${rect})` : ``;
|
|
|
|
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 ? `@prepare_outro(${this.var}, ${rect})` : ``));
|
|
|
|
${prepare_outro}
|
|
|
|
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';
|
|
|
|
const params = this.node.animation.expression ? this.node.animation.expression.render(block) : '{}';
|
|
|
|
|
|
|
|
|
|
|
|