Closed MangoMarcus closed 2 weeks ago
Hey @MangoMarcus,
Thanks for the suggestion - we have an animation update stored for Flowbite in the future and this will be a part of it.
Cheers, Zoltan
Thanks @zoltanszogyenyi , feel free to close this then 🙂
I'd like to style based on the dropdown's state, specifically to rotate the arrow icon when it's open.
Preline provides a
hs-dropdown-open
modifier, eg.hs-dropdown-open:rotate-180
. This also allow you to animate properties likeopacity
ormargin-top
when the dropdown is opened.A simpler solution could just be to add an
open
class to thedata-dropdown-toggle
element, then you can use TW's group feature to achieve the same effect - eg.group-[.open]:rotate-180
Thanks