mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-18 23:00:31 +00:00
Fix sticky header jumpiness (see: https://github.com/leafo/sticky-kit/wiki/Troubleshooting)
This commit is contained in:
parent
9edc2e2fef
commit
c68dda185e
2 changed files with 9 additions and 4 deletions
static/js
|
@ -56,7 +56,10 @@ images.each(function(index){
|
|||
});
|
||||
|
||||
// Stick the top to the top of the screen when scrolling
|
||||
$("#top-bar").stick_in_parent({spacer: false});
|
||||
$("#top-bar").stick_in_parent( {
|
||||
parent: ".sticky-parent",
|
||||
spacer: ".sticky-spacer",
|
||||
});
|
||||
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue