shx-3d-render

main
Jan Umbach 2024-06-13 16:21:47 +02:00
parent 21c48968db
commit a39b396f10
1 changed files with 7 additions and 5 deletions

View File

@ -92,16 +92,18 @@
// calculate of this height
let height = this.container.offsetHeight;
this.container.style.height = '0px';
let container = this.container;
container.style.height = '0px';
function animate() {
anime({
targets: this.container,
targets: container,
height: height,
duration: 500,
easing: 'cubicBezier(0.590, 0.190, 0.050, 0.990)',
complete: function() {
this.container.style.height = 'auto';
container.style.height = 'auto';
}
});
}
@ -117,9 +119,9 @@
});
}
} else {
this.container.style.opacity = 0;
container.style.opacity = 0;
anime({
targets: this.container,
targets: container,
opacity: 1,
duration: 500,
easing: 'cubicBezier(0.590, 0.190, 0.050, 0.990)'