-
-
Save dexit/8eefe6285521e67c6753e55b577006cd to your computer and use it in GitHub Desktop.
Add Sticky Header class in Elementor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery( document ).ready(function($) { | |
| jQuery(window).scroll(function($){ | |
| if ($(this).scrollTop() > 80) { | |
| $('header.elementor-section').addClass('StickyHeader'); | |
| } else { | |
| $('header.elementor-section').removeClass('StickyHeader'); | |
| } | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment