Skip to content

Instantly share code, notes, and snippets.

@divienginesupport
Created April 19, 2023 09:42
Show Gist options
  • Save divienginesupport/aef74c128a7135ade6494b8bd74f6e30 to your computer and use it in GitHub Desktop.
Save divienginesupport/aef74c128a7135ade6494b8bd74f6e30 to your computer and use it in GitHub Desktop.
Divi Mobile Snippet - Blur the background when the Divi Engine style menu is open
/* Add a blur effect when the Hamburger Menu is open */
/* Target the element with ID 'page-container' when the parent element has class 'show-menu' */
.show-menu #page-container {
/* Apply a 10-pixel blur effect to the element */
-webkit-filter: blur(10px); /* For WebKit browsers (e.g., Safari) */
-moz-filter: blur(10px); /* For Mozilla browsers (e.g., Firefox) */
-o-filter: blur(10px); /* For Opera browsers */
-ms-filter: blur(10px); /* For Microsoft browsers (e.g., Internet Explorer) */
filter: blur(10px); /* Standard filter property for modern browsers */
/* Apply a transition effect when changing the element's properties */
-webkit-transition: all 0.5s ease; /* For WebKit browsers (e.g., Safari) */
transition: all 0.5s ease; /* Standard transition property for modern browsers */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment