Hi all!
I’m experimenting with some custom code and can not figure it out.
My final goal is to implement foldable (collapse) text blocks: initially you can see several line of text with “Read more…” element below. You click on it - more text unfolds and you can see “Read less…” element to fold it back.
So, the first question: what would be the best way of implementing it?
Currently I play around with the “Accordion menu” example from the official docs. And I have an issue with that. I’ve added the code widget to the page and can see it working in the preview (see the screenshot below).
But when I unfold the menu - it overlaps with another text widget located below (see the next screenshot). How to avoid this overlapping?
I would expect that when I unfold the accordeon all other widgets located below should move down together with the accordion animation.
Please share your experience and ideas!