Take a look at the mobile version of the Apple website. You’ll notice a two-line hamburger menu icon. When one taps/clicks on the burger icon, the menu items appear and the icon morphs into an X symbol. Tap/click the X symbol, and the menu closes while the X symbol morphs back into the two-line hamburger icon.
How can this be achieved in Sparkle?