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

https://github.com/vb/scrollhide

Hide element when scrolling down, show when scrolling up.
https://github.com/vb/scrollhide

Last synced: 7 months ago
JSON representation

Hide element when scrolling down, show when scrolling up.

Awesome Lists containing this project

README

          

# jQuery Scrollhide [![Build Status](https://travis-ci.org/viktorbergehall/scrollhide.svg?branch=master)](https://travis-ci.org/viktorbergehall/scrollhide) ![Bower Version](https://badge.fury.io/bo/jquery-scrollhide.svg)

### Hide element when scrolling down, show when scrolling up

Design pattern from Google Chrome and Safari mobile browsers.
[Demo for mobile device](http://viktorbergehall.github.io/scrollhide/)

## Usage

1. Include jQuery:

```html

```

2. Include plugin's code:

```html

```

3. Style the element/elements:

```html

```

4. Call the plugin:

```javascript
$("nav").scrollhide();
```

## Structure

```
├── demo/
│ └── index.html
├── dist/
│ ├── jquery.scrollhide.js
│ └── jquery.scrollhide.min.js
├── src/
│ └── jquery.scrollhide.js
├── .editorconfig
├── .gitignore
├── .jshintrc
├── .travis.yml
├── Gruntfile.js
└── package.json
```

## Contributing

Check [CONTRIBUTING.md](https://github.com/viktorbergehall/scrollhide/blob/master/CONTRIBUTING.md) for more information.

## History

Check [Releases](https://github.com/viktorbergehall/scrollhide/releases) for detailed changelog.

## License

[MIT License](http://viktorbergehall.mit-license.org) © Viktor Bergehall