accordion animation

main
alexanderroese 2024-06-22 16:07:24 +02:00
parent ec6f74299b
commit 2837a974f0
1 changed files with 115 additions and 116 deletions

View File

@ -198,7 +198,7 @@
// Set the keyframes from the startHeight to endHeight
height: [startHeight, endHeight]
}, {
duration: 300,
duration: 200,
easing: 'linear'
});
// When the animation is complete, call onAnimationFinish()
@ -223,7 +223,6 @@
document.querySelectorAll('details').forEach((el) => {
new Accordion(el);
});
</script>
{% schema %}