@NJVS
Posted
Hi, CSS display
property cannot be animated. You can just set max-height: 0
on your .faq-acc-answer
and do the element.scrollHeight
, then element.removeAttribute("style")
to remove the element.style.maxHeight
. I just submit my solution, you can check it if you want <3
Marked as helpful
@snehamoybag
Posted
@NJVS thankyou so much 🙇🏾♂️ let me check