bouzidseyf / birdview

User interface experiment and JavaScript plugin.

Home Page:https://www.achrafkassioui.com/birdview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Birdview.js

Screenshot

Get a glance at a whole web page with an aerial view.

See demo & full documentation here.

Setup

Include birdview.js and birdview.css in HTML:

<link rel="stylesheet" type="text/css" href="birdview.css"/>
<script type="text/javascript" src="birdview.js"></script>

Then enable Birdview with the initialization method:

birdview.init();

Usage

To trigger birdview, you can either:

  • Press the Z key
  • Pinch-in on a touch device

You can also trigger birdview by clicking any HTML element with a birdview_toggle class:

<button class="birdview_toggle">Birdview</button>

Or you can toggle birdview programmatically using the toggle method:

birdview.toggle();

You can stop birdview from running on your page by calling:

birdview.destroy();

The destruction method is called inside the initialization method. Calling birdview.init() multiple times shouldn't create any undesirable overlapping.

License

Birdview.js is published under the GNU General Public License.

About

User interface experiment and JavaScript plugin.

https://www.achrafkassioui.com/birdview/

License:GNU General Public License v3.0


Languages

Language:JavaScript 70.2%Language:CSS 29.8%