pull/1/head
Jan Umbach 2024-05-30 12:48:28 +02:00
parent 0b5cd946da
commit 5942c4c84f
1 changed files with 10 additions and 7 deletions

View File

@ -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);
}
}
}