Created
March 30, 2020 16:49
-
-
Save itsmunim/5897f4b635c9e6e936e4ffd064c50fa7 to your computer and use it in GitHub Desktop.
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
| <script> | |
| const header = document.getElementsByTagName('header')[0]; | |
| // the offsetHeight determines how much of header wrap gets hidden with scroll | |
| ScrollToStick.applyScrollToStick('header-wrap', header.offsetHeight); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment