Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swpnav

Path and Facebook like navigation brought your web site for iOS and Android devices.

usage

simple

To instert below code end of body element or state of document ready.

Swpnav('#content', '#nav');

with options

execution with options.

Swpnav('#content', '#nav', {
  slide: 230,
  duration: '0.5s',
  timingFunction: 'ease'
  trigger: 50
});

with APIs

Swpnav has some APIs listed below.

  • open - open navigation
  • close - close navigation
  • destroy - destroy swpnav

with

var open = document.getElementById('open');
var swp = Swpnav('#content', '#nav');

open.addEventListener('click', function(ev) {
  ev.preventDefault();

  if ( swp.state ) {
    swp.close();
  } else {
    swp.open();
  }
}, false);

devices

  • iPhone3G, 3GS, 4, 4S (iOS3.2 or higher
  • Android (touchmove is buggy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages