An open API service indexing awesome lists of open source software.

https://github.com/filipchalupa/hiding-header-webcomponent


https://github.com/filipchalupa/hiding-header-webcomponent

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Hiding Header Webcomponent [![npm](https://img.shields.io/npm/v/hiding-header-webcomponent.svg)](https://www.npmjs.com/package/hiding-header-webcomponent) ![npm type definitions](https://img.shields.io/npm/types/hiding-header-webcomponent.svg) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/hiding-header-webcomponent)

Toggles header visibility on scroll. Try [demo.html](https://filipchalupa.cz/hiding-header-webcomponent/demo.html) or [Codepen demo](https://codepen.io/Onset/project/editor/ZLOYKk).

![UI example](https://raw.githubusercontent.com/FilipChalupa/hiding-header/HEAD/screencast.gif)

# How to use

```html

.content {
background-color: #252525;
color: #ffffff;
padding: 1em;
}

Your header content
```