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. Window menu drop

Window menu drop

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 208 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.
  • C
    C
    calvez_calvez
    wrote on last edited by
    #1

    Hello !

    Could you explain me how the window "INFORMATION" appears like this ?
    http://www.virgilijubero.com/

    Is it only a CSS customization ?

    Thank you !

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

      Dear @calvez_calvez

      I hope to give a quick answer that help's you on what i believe is occurring:

      The 'Information" text in the top right corner is actually a link to a project 'page' called information that sits in Lay Theme's primary menu:

      Screen Shot 2020-09-28 at 12.48.08 PM.png

      However this project page cannot be accessed because a class called 'disabled' has been applied to the <a> link making it not clickable - 'pointer-events:none;'

      Screen Shot 2020-09-28 at 12.36.31 PM.png

      Now hiding above the viewport and away from the user is a box called 'Contacto' containing the <p> paragraph information that displays the content:

      Screen Shot 2020-09-28 at 12.45.49 PM.png

      Here we can see that this box sits '-1000px' out of sight.

      The trick happens that when 'information' is clicked a class is added/ toggled on called "active "

      https://www.w3schools.com/jquery/html_toggleclass.asp

      This new class "active" come's with some new CSS that changes the 'top:-1000px; to 'top: 37px;

      Screen Shot 2020-09-28 at 12.45.57 PM.png

      Now "contacto" is forced into view and along with a transition for a smooth effect:
      https://www.w3schools.com/css/css3_transitions.asp

      This method requires knowledge of basic CSS and JS Added to "Lay Options - Custom CSS & JS"

      Screen Shot 2020-09-14 at 2.51.54 PM.png

      https://laytheme.com/documentation.html#custom-javascript

      Remember with JS that you must load it within a 'newpage event' to work with Lay Theme - also that the common '$' needs to be changed to 'jQuery'

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

      I hope this helps you @calvez_calvez and good luck! its a really cool customisation.

      have a wonderful day and thank you for using Lay Theme :)

      Sincerely
      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