Jump to content

JS framework: ips.ui.menu too restrictive


Tom Christian

Recommended Posts

Posted

I'm trying to enhance ipsMenu's slightly by adding css animations to when the menu's open and close.

However, I've found that the _showMenu() method is too restrictive and is preventing me from applying any kind of CSS animation as there's no way of differentiating whether its open or closed. I blame this party down to using the show() jQuery method. It's pretty annoying for other devs as there's no class we can hook into with CSS. It's better (and faster) to add a class and then apply styles via CSS.

I also had a look at hooking into the menuOpened & menuClosed events to add or remove my CSS class but they're fired at the end of the method so aren't a viable option for me.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...