Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress Bar doesn't work #58

Open
celogeek opened this issue Dec 12, 2021 · 0 comments
Open

Progress Bar doesn't work #58

celogeek opened this issue Dec 12, 2021 · 0 comments

Comments

@celogeek
Copy link

On my blog: https://blog.celogeek.com
I can't make the progress bar works.

I check the signe-post-title-bar
As soon as I start moving, it attach a display:none to the element.
I check the code:

                if ( doc.scrollTop() > headerNavBrand.height() ) {
                    //headerBarContainer.fadeOut( 800 );
                    progressTitle.html( pageTitle.html() );
                    progressBarContainer.find( '.navbar-brand' ).html( headerNavBrand.html() );
                    progressBarContainer.fadeIn( 100 );
                    progressBarContainer.addClass( 'fixed-top' );
                    progressBarContainer.addClass( 'slide-down' );
                } else {
                    //headerBarContainer.fadeIn( 800 );
                    progressBarContainer.removeClass( 'slide-down' );
                    progressBarContainer.fadeOut( 100 );

                    if ( progressBarContainer.hasClass( 'fixed-top' ) ) {
                        setTimeout(function() {
                            progressBarContainer.removeClass( 'fixed-top' );
                        }, 500);
                    }
                }

I try to change the fadeIn by fadeOut and the other way around, I can see the bar appear but it doesn't stick to the top.

Any idea what I can missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant