mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-18 23:00:31 +00:00
feat: add sticky bar with smooth scroll
This commit is contained in:
parent
e37af28876
commit
da208441c0
5 changed files with 91 additions and 7 deletions
static/js
|
@ -56,10 +56,10 @@ images.each(function(index){
|
|||
});
|
||||
|
||||
// Stick the top to the top of the screen when scrolling
|
||||
//$("#top-bar").stick_in_parent( {
|
||||
// parent: ".sticky-parent",
|
||||
// spacer: ".sticky-spacer",
|
||||
//});
|
||||
$("#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