test
parent
0b5cd946da
commit
5942c4c84f
|
@ -58,16 +58,19 @@
|
|||
videoElement.classList.add('shx-video-for-desc');
|
||||
|
||||
if(openAnimation) {
|
||||
//animejs fade in
|
||||
|
||||
|
||||
videoElement.style.height = '0px';
|
||||
|
||||
anime({
|
||||
targets: videoElement,
|
||||
height: '200px',
|
||||
duration: 300,
|
||||
easing: 'easeOutQuad'
|
||||
});
|
||||
//animejs fade in
|
||||
setTimeout(() => {
|
||||
anime({
|
||||
targets: videoElement,
|
||||
height: '100%',
|
||||
duration: 500,
|
||||
easing: 'easeInOutQuad'
|
||||
});
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue