Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Multi-column Menu

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #195457
    Black Mamba
    Participant

    This is what I’ve got so far.

    http://codepen.io/ZHAA/pen/ZYvQjm

    It’s working just fine, but there’s been a sudden change of plans and I have to change the way it works.

    I want to keep the same behavior (slideUp / slideDown) but instead of the submenus sliding down just below their respective menu I need them to slide down on a 2nd column. I’m actually gonna have at least 3 columns, but the behavior is the same.

    Alt

    I’ve looked for a jQuery plugin but couldn’t find anything remotely similar.

    Does anybody know of one? or a simple fix to my current situation…

    Thanks.

    #195463
    Paulie_D
    Member

    Just to be clear…these are supposed to be submenus?

    Because that’s not the structure you have in your Codepen.

    <ul class="menu">
      <li>Item 1</li>
      <li class="submenu">Item 1-A</li> /* not a submenu */
      <li class="submenu">Item 1-B</li> /* not a submenu */
    </ul>
    
    #195469
    Black Mamba
    Participant

    I guess… probably not. lol
    I’m sorry if I’m misusing some specific terminology.

    It’s supposed to be exactly what the picture shows.
    Which is what I have in the Codepen except that, like I said, I need them to slide down in a different collumn to the right.

    #195473
    Paulie_D
    Member

    Here’s a CSS one…that displays on hover.

    Any sliding can be added later.

    http://codepen.io/Paulie-D/pen/vEpKJv

    #195474
    Black Mamba
    Participant

    That’s (roughly) it, but I’m not sure I’m able to tailor the js to work with that. :(

    #195477
    Paulie_D
    Member

    I’m not sure I’m able to tailor the js to work with that

    That’s how developers make a living.

    Change the structure / layout…change the javascript.

    #195492
    Black Mamba
    Participant

    Not sure what that’s supposed to mean, but ok.

    #195594
    Black Mamba
    Participant

    OK, I’ve finally managed to make fix most of it.
    I’ve got two columns working.

    The issue now is adding a 3rd column.
    I’ve been messing around with it for a while and think I’ve handled the HTML part okay (Item 2), the issue now is the script. I just can not make it work…

    Can somebody help me out?
    Thanks.

    http://codepen.io/ZHAA/pen/XJVqax

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.