accordion animation
parent
ec6f74299b
commit
2837a974f0
|
@ -198,7 +198,7 @@
|
||||||
// Set the keyframes from the startHeight to endHeight
|
// Set the keyframes from the startHeight to endHeight
|
||||||
height: [startHeight, endHeight]
|
height: [startHeight, endHeight]
|
||||||
}, {
|
}, {
|
||||||
duration: 300,
|
duration: 200,
|
||||||
easing: 'linear'
|
easing: 'linear'
|
||||||
});
|
});
|
||||||
// When the animation is complete, call onAnimationFinish()
|
// When the animation is complete, call onAnimationFinish()
|
||||||
|
@ -223,7 +223,6 @@
|
||||||
document.querySelectorAll('details').forEach((el) => {
|
document.querySelectorAll('details').forEach((el) => {
|
||||||
new Accordion(el);
|
new Accordion(el);
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% schema %}
|
{% schema %}
|
||||||
|
|
Loading…
Reference in New Issue