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

hover menue

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 1.1k 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
    H
    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
      RichardR
      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/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
        H
        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
          RichardR
          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

          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
          J
          j.varela
          A
          alasdair17
          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