Forums

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

Home Forums CSS [Solved] Dropdown menu transition not working?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #151256
    plaedien
    Participant

    Hi guys/girls,

    I’m wondering if somebody can help me. I’m just managed to finally get a pure CSS drop down menu working how I want it, with some basic CSS3 transitions on hover. Unfortunately the one link with the dropdown menu doesn’t appear to work, and I can’t for the life of me figure out why.

    Can anyone have a look for me?

    Your text to link here…

    cheers! Karl

    #151261
    Paulie_D
    Member

    You cannot transition display:none to display:block using CSS.

    You could look at a JS/JQ solution.

    #151263
    Dennis
    Participant

    Alternatively you could look into using opacity and animating that if you still want to keep it all in CSS.

    #151265
    Paulie_D
    Member

    Indeed, default opacity:0 on the submenu and transition to 1 on hover of the parent.

    Won’t do anything for the height though.

    #151324
    Paulie_D
    Member

    @tomasz76 Thanks for that link.

    That works great. I put together an example.

    http://codepen.io/Paulie-D/pen/55e2c755a20da404090951a63584f4d0

    #151335
    plaedien
    Participant

    Thank you all!

    I was trying as much as possible to keep the menu purely css (for no other reason than seeing if I could!), so I will try as much as I can to avoid javascript. Thank you Tomasz86 for the link, that was extremely helpful. Having said that, the javascript option is good to know for future projects.

    thanks guys :)

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