Commit 0a1e29a 1 parent 5871d1b commit 0a1e29a Copy full SHA for 0a1e29a
File tree 2 files changed +4
-3
lines changed
packages/docusaurus-theme-classic/src/theme
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 18
18
}
19
19
20
20
.navbarHideable {
21
- transition : top 0.2s ease-in-out;
21
+ transform : translateY (0 );
22
+ transition : transform var (--ifm-transition-fast ) ease;
22
23
}
23
24
24
25
.navbarHidden {
25
- top : calc (var (--ifm-navbar-height ) * -1 ) !important ;
26
+ transform : translateY ( calc (var (--ifm-navbar-height ) * -1 )) ;
26
27
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {useHideableNavbarReturns} from '@theme/hooks/useHideableNavbar';
12
12
13
13
const useHideableNavbar = ( hideOnScroll : boolean ) : useHideableNavbarReturns => {
14
14
const location = useLocation ( ) ;
15
- const [ isNavbarVisible , setIsNavbarVisible ] = useState ( ! hideOnScroll ) ;
15
+ const [ isNavbarVisible , setIsNavbarVisible ] = useState ( hideOnScroll ) ;
16
16
const isFocusedAnchor = useRef ( false ) ;
17
17
const [ lastScrollTop , setLastScrollTop ] = useState ( 0 ) ;
18
18
const [ navbarHeight , setNavbarHeight ] = useState ( 0 ) ;
You can’t perform that action at this time.
0 commit comments