Slide and swipe menu
A sliding menu that works with touchSwipe library.
Online demo
Visit plugin site.
Appszoom also uses it! So cool!
What's the difference with other sliders?
This plugin uses CSS3 transform property to move the navigation. That's why it works smoothly. Because performance matters.
- Only 1 js file (+ jQuery + touchSwipe)
- 1Kb minified
Installation
1. Grab a copy of the plugin
Using bower
bower install slide-and-swipe-menu --save-dev
Using npm
npm install slide-and-swipe-menu --save-dev
or download the plugin from GitHub
2. Load the required files
Load them in the html
<!-- jQuery library (served from Google) --> <!-- touchSwipe library --> <!-- Sliding swipe menu javascript file -->
or use Browserify
;
3. Create the HTML markup
[...] [...] Open / close
4. Initialize the plugin
Default initialization
<script> ;</script>
5. Add some CSS
/* navigation *//* overlay layer */
Follow the repository
★ Star and watch this repo in order to stay updated with news about this plugin
License
The MIT License (MIT)
Copyright (c) 2015 Joan Claret
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Other useful plugins
- Maximum Characters limit warning: Get a warning when the max char limit has been exceeded with a jQuery plugin
- jcSlider: A responsive slider jQuery plugin with CSS animations
- html5 canvas animation: 3D lines animation with three.js
- jquery dynamic max height : Dynamic max height plugin for jQuery with CSS animation