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 blur + box-shadow?

Navbar blur + box-shadow?

Scheduled Pinned Locked Moved General Discussion
blurbox-shadownavbar
4 Posts 2 Posters 994 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.
  • N
    N
    nm
    wrote on last edited by nm
    #1

    I would like to use the blur function of the navbar, but have it fade in opacity instead of having a hard edge. Not sure if this is possible?

    I have figured out how to do the following with a solid navbar background using the following code:

    navbar {
        box-shadow: 0px -15px 30px 20px #000000;
    }
    

    ie:
    solid_navbar.jpg

    Is it possible to acheive a similar result with the blurred navbar, like this mockup?

    ie:
    mockup.png

    vs the default blur with hard edge:
    blur navbar.jpg

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

      Dear @nm

      Are you able to post a link to your website with Navbar? 🌝 🔍


      Best
      Richard
      1 Reply Last reply
      0
      • N
        N
        nm
        wrote on last edited by
        #3

        Hey Richard,

        Absolutely! It's not public yet, but the staging URL is:

        https://nathanmartell.dreamhosters.com/

        pw: almostdone

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

          Dear Nathan

          @nm

          Yes this will be a bit tricky but you can get there, you can apply a nice blur using back-drop-filter:blur :

          https://www.w3schools.com/cssref/css3_pr_backdrop-filter.asp

          Result:

          Screen Shot 2022-05-23 at 11.57.29 AM.png

          This is good when the Navbar is not interacting with another element behind it to blur off, i noticed this when using the standard 'filter:blur'.

          The tricky part is the box-shadow but this thread outlines a possible solution:

          https://stackoverflow.com/questions/52140378/using-a-shadow-together-with-backdrop-filter-blur

          Even better would be to use the Blur function and Drop shadow in the same, for example with the backdrop filter you can apply multiple settings:

          .element {
            backdrop-filter: grayscale(0.5) opacity(0.8) /* ...and on and on... */;
          }
          

          Outlined here:

          https://css-tricks.com/almanac/properties/b/backdrop-filter/

          So you could have blur and drop shadow together within the backdrop filter.

          Best wishes and good luck! ⭐️


          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
          A
          Anna_S
          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