How to combine collapse and swap #993
Answered
by
saadeghi
blockhunts
asked this question in
Q&A
-
|
I want to create a hamburger button that, when it got clicked, it will unhide a list of menu below, and hide it again when it got clicked for the second time. Can it be done using combination of swap and collapse component? |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Aug 2, 2022
Replies: 1 comment 5 replies
-
|
You need JS to do that. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You need JS to do that.
Instead of using checkboxes, you can control swap by adding/removing
swap-activeclass and you can controlcollapseusingcollapse-open/collapse-closeclass.