Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 512 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 Offline
    P Offline
    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 Offline
      RichardR Offline
      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      šŸ’æ Email me here: šŸ’æ
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

      This often solves issues you might run into

      When you post:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      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