Design pattern from Google Chrome and Safari mobile browsers. Demo for mobile device
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
-
Include plugin's code:
<script src="dist/jquery.scrollhide.min.js"></script>
-
Style the element/elements:
<nav style="position: fixed; top: 0; width: 100%; height: 50px;"></nav>
-
Call the plugin:
$("nav").scrollhide();
├── demo/
│ └── index.html
├── dist/
│ ├── jquery.scrollhide.js
│ └── jquery.scrollhide.min.js
├── src/
│ └── jquery.scrollhide.js
├── .editorconfig
├── .gitignore
├── .jshintrc
├── .travis.yml
├── Gruntfile.js
└── package.json
Check CONTRIBUTING.md for more information.
Check Releases for detailed changelog.
MIT License © Viktor Bergehall