Generic Off canvas Overlay Panel Plugin For jQuery onoffcanvas - Download Generic Off-canvas Overlay Panel Plugin For jQuery - onoffcanvas

Download Generic Off-canvas Overlay Panel Plugin For jQuery – onoffcanvas

Posted on

This time I will share jQuery Plugin and tutorial about Generic Off-canvas Overlay Panel Plugin For jQuery – onoffcanvas, hope it will help you in programming stack.

Generic Off canvas Overlay Panel Plugin For jQuery onoffcanvas - Download Generic Off-canvas Overlay Panel Plugin For jQuery - onoffcanvas
File Size: 20 KB
Views Total: 1866
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

onoffcanvas is a lightweight, Bootstrap-compatible jQuery offcanvas plugin used to create animated off-canvas panels overlaying the whole page or only part of a specific container. Perfect for off-canvas site navigation and animated image caption overlay.

Installation:

1 # NPM
2 $ npm install onoffcanvas
3  
4 # Bower
5 $ bower install onoffcanvas

How to use it:

1. Put the following JavaScript and CSS files into your webpage.

1 <script src="jquery.min.js"></script>
2 <link rel="stylesheet" href="dist/onoffcanvas.css">
3 <script src="dist/onoffcanvas.js"></script>

2. Create the offcanvas panels for the whole page.

01 <div class="canvas is-fixed is-top" id="cft">
02   <h1>Top Canvas</h1>
03   <button class="btn btn-danger" name="button" data-toggle="canvas" data-target="#cft">CLOSE</button>
04 </div>
05              
06 <div class="canvas is-fixed is-right" id="cfr">
07   <h1>Right Canvas</h1>
08   <button class="btn btn-danger" name="button" data-toggle="canvas" data-target="#cfr">CLOSE</button>
09 </div>
10              
11 <div class="canvas is-fixed is-bottom" id="cfb">
12   <h1>Bottom Canvas</h1>
13   <button class="btn btn-danger" name="button" data-toggle="canvas" data-target="#cfb">CLOSE</button>
14 </div>
15              
16 <div class="canvas is-fixed is-left" id="cfl">
17   <h1>Left Canvas</h1>
18   <button class="btn btn-danger" name="button" data-toggle="canvas" data-target="#cfl">CLOSE</button>
19 </div>
20              
21 <div class="canvas is-fixed" id="cff">
22   <h1>Full Canvas</h1>
23   <button class="btn btn-danger" name="button" data-toggle="canvas" data-target="#cff">CLOSE</button>
24 </div>

3. Create a offcanvas panels for your container.

1 <div class="onoffcanvas-container">
2   ...
3   <div class="onoffcanvas is-top p-2 bg-info" id="cat">
4     <button type="button" class="btn btn-danger" data-toggle="onoffcanvas" data-target="#cat">
5       CLOSE
6     </button>
7   </div>
8 </div>

Change log:

2017-03-17

  • v1.1.2

2017-03-13

  • v1.1.1

This awesome jQuery plugin is developed by onokumus. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net