← 返回首页
GitHub - sectsect/solid-hiding-header: SolidJS header that disappears on scroll down and appears on scroll up. · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

sectsect/solid-hiding-header

Go to file
Code

Repository files navigation

More items

@sect/solid-hiding-header

A port of Hiding Header React by Filip Chalupa.

Demo

Toggles header visibility on scroll. Demo.

Quick start

Install it:

npm i @sect/solid-hiding-header # or yarn add @sect/solid-hiding-header # or pnpm add @sect/solid-hiding-header

CSS:

Import node_modules/hiding-header/dist/style.css to your CSS. It's few lines of code. You can alternatively copy paste it and adjust things like z-index to your needs.

Usage Example

import { HidingHeader } from '@sect/solid-hiding-header'; const Header: Component = () => { return ( <HidingHeader> <header class="py-5"> <div class="inner"> Put your content here </div> </header> </HidingHeader> ); };

Allow Top Level HTML <header> tag

const Header: Component = () => { return ( <HidingHeader component="header"> <div class="inner py-5"> Put your content here </div> </HidingHeader> ); };

See Core API docs for more options.
https://github.com/FilipChalupa/hiding-header/blob/main/README.md

Changelog

See CHANGELOG file.

License

See LICENSE file.

✌️

A little project by @sectsect

About

SolidJS header that disappears on scroll down and appears on scroll up.

Topics

Resources

License

Stars

2 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.