shx-3d-render
parent
21c48968db
commit
a39b396f10
|
@ -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)'
|
||||
|
|
Loading…
Reference in New Issue