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. hover menue

hover menue

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 480 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.
  • H Offline
    H Offline
    hanna
    wrote on last edited by hanna
    #1

    hi there, i wonder if its it possible to have a hoverable (toggle?) menue like on this website:
    www.markues.net
    / my intention is acctually to create a menue that is the reversal of the menue on the page above, where it reveals once you clicked on sth like a dash / point etc.

    thank you for helping out!

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

      Dear @hanna

      I hope i can help you at least in the right direction :)

      The Menu is always there, its just hiding, however it is hidden out of the view of the user ( to the right of the viewport/browser window )

      When you hover over the Menu items, A class gets added to the opening <html>. The class 'visible---nav'
      ( Note: you could also add the class to the opening <body> tag ):

      Screen Shot 2020-11-30 at 3.18.53 PM.png

      On Hover:

      Screen Shot 2020-11-30 at 3.19.11 PM.png

      When this class gets added, along with it comes some new CSS to be applied to the Menu - " transform:translateX() "
      This forces it Left across the screen and into view. The smooth slide is achieved through a CSS 'transition'

      Screen Shot 2020-11-30 at 3.19.01 PM.png

      On hover:
      Screen Shot 2020-11-30 at 3.19.20 PM.png

      You would be able to achieve this by adding Custom Code within 'Lay-Options - Custom CSS & HTML'

      Some links to help:

      CSS: Transform
      https://www.w3schools.com/cssref/css3_pr_transform.asp

      CSS Transition:
      https://www.w3schools.com/css/css3_transitions.asp

      On Hover - AddClass ( the CSS way ):
      https://css-tricks.com/snippets/jquery/addingremoving-class-on-hover/

      On Hover - AddClass ( the JS way ):
      https://stackoverflow.com/questions/4358964/jquery-hover-addclass-problem

      You will need some basic knowledge of CSS or JS to achieve this, here on the Lay Theme Website we have some help on the subject:

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

      Javascript added to Lay Theme must first be wrapped in a 'Newpage event' and the common ($) symbol must be changed to 'jQuery' :
      https://laytheme.com/documentation.html#custom-javascript

      Here is a link to a thread with a similar subject:
      http://laythemeforum.com:4567/topic/5995/burger-menu-in-desktop-view/2

      I hope this helps & have a wonderful day! :)

      Best wishes
      Richard

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hanna
        wrote on last edited by
        #3

        Dear Richard,

        thank you for helping out, Ill try to code it on costum css.
        :)
        hanna

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

          Dear Hanna @hanna

          Cool! good luck and let me know how you go :)

          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
          B
          barrybianco
          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