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

L

LouisS

@LouisS
About
Posts
11
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Transparent Navbar (header)
    L LouisS

    Now I figured it out. DOnt know why it didnt work in the beginning. Added the blur filter and some transperancy with the rgba.

    <script>
        jQuery(document).ready(function(){
          jQuery(window).scroll(function() { // check if scroll event happened
            if (jQuery(document).scrollTop() > 50) { // check if user scrolled more than 50 from top of the browser window
                jQuery(".navbar").css("background-color", "rgba(255, 255, 255, 0.4)"); // if yes, then change the color of class "navbar" to white (#ffffff) and 0.4 opacity
             // jQuery(".navbar").css("background-color", "#ffffff"); // if yes, then change the color of class "navbar" to white (#ffffff)
                jQuery(".navbar").css("backdrop-filter", "blur(5px)"); // if yes, then change the blur to 5px
            } else {
                jQuery(".navbar").css("background-color", "transparent"); // if not, change it back to transparent
                jQuery(".navbar").css("backdrop-filter", "blur(0px)"); // if yes, then change the blur to 0px
    
            }
          });
        });
    </script>
    
    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search