Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Navbar / Menu slide down on hover

Navbar / Menu slide down on hover

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 598 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    phyllmag
    wrote on last edited by phyllmag
    #1

    Hi there!

    I haven't been able to find the right piece of advice/code on the forum and hope someone is willing to help me out... :)

    I added some menus to my website https://phyll.space in a top navbar. What I would like to do is to hide the navbar(+menus+sitetitle) for projects and let it appear (slide down) only on mouse hover.

    I've been testing this for 1 placeholder project (https://phyll.space/mut) where I hid the navbar/menus/sitetitle. Yet I don't know how to proceed and how to create the slide down effect on hover.

    I used this code so far:

    /* site title */
    body.slug-mut .sitetitle{
    display:none;
    }
    /* navigation */
    body.slug-mut nav.primary{
    display: none;
    }
    body.slug-mut .second_menu{
    display: none;
    }
    body.slug-mut .third_menu{
    display: none;
    }
    body.slug-mut .fourth_menu{
    display: none;
    }
    body.slug-mut .navbar{
    display: none
    }
    

    I'd be super greatful for some help!

    Best,
    Mirthe

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by Richard
      #2

      Dear @phyllmag

      Cool Website :)

      You need to look into the :hover css function

      
      :hover
      
      

      http://laytheme.com/documentation.html#custom-css-styling

      https://www.w3schools.com/cssref/sel_hover.asp

      Right now we have the NAV contents set to

      display:none
      
      

      When we hover we want to set the contents to i believe

      display: block
      
      

      Screen Shot 2020-08-12 at 6.21.12 PM.png

      A quick example would be:

      
      .second_menu:hover{
      
      display: block;
      
      }
      

      is this what you are looking for?

      let me know :)

      Best
      Richard

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search