GithubHelp home page GithubHelp logo

imranansari / sidetap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harvesthq/sidetap

0.0 2.0 0.0 1.35 MB

Sidetap is a simple framework that allows you to quickly build platform-independent mobile web interfaces.

Home Page: http://sidetap.it

License: Other

sidetap's Introduction

#Sidetap

We built Sidetap to be an easy-to-use implementation of the side navigation pattern popularized by apps like Sparrow and Facebook. It solves many common mobile development problems right out of the box. Here are some of the specific things we like about it:

  • Lightweight: Sidetap only weighs 2k when minifyied and gzipped!
  • Device Support: Sidetap aims to always deliver the best possible experience for all devices by starting with a basic experience and progressively enhancing it for more capable devices.
  • Less Decisions to Make: By embracing convention over configuration, Sidetap let’s you start building your mobile interfaces right away.
  • Simple: Sidetap provides a flexible foundation for navigating between content panels on mobile devices using an easy-to-use syntax.

See it in action.

##How to Use Sidetap

  1. Build the HTML Structure

    Sidetap uses a very specific HTML structure which can be found in the skelton.html file

  2. Instantiate Sidetap

    Create a reference to Sidetap from within your app.

    var my_sidetap = new sidetap();

  3. Call Animations

    Any time you want to show a new section, you just tell Sidetap which content element to animate. Sidetap will take care of clearing the stage using whatever animation is appropriate for the situation.

    my_sidetap.show_section(element, options);

    show_section options:
    callback: a function to fire when the switch is complete
    animation: an animation style to use (ios 5+ only). Current animations are upfrombottom, downfromtop, infromright, infromleft

##Dependency

Requires jQuery (only tested with 1.7.2) or Zepto.js.

##Building Files Using Grunt

Sidetap's javascript and css are written using coffeescript and less respectively. Each of these file types must be compiled before they can be used by the browser. To do this easily, we're using the excellent grunt build system. To use the build system, you must first install node and npm.

  1. Install grunt: npm install -g grunt
  2. Install grunt-contrib: npm install grunt-contrib
  3. That's it.

There are a few available commands.

  • grunt or grunt build: build the css & js files
  • grunt watch: build the css & js files whenever the less or coffee files change

##Reporting Issues & Contributing

We welcome your input, but strongly encourage you to read Nicolas Gallagher's excellent issue guidelines before filing an issue or opening a pull request. While these are guidelines are his projects specifically, they would serve as an excellent guide for contributing to any open source project.

##Development Roadmap

As with any software project, there's always room for improvement. These are some of the things we'd like to get added to Sidetap in the future.

  • More iOS-like header animations
  • Better touch support
  • Leaving side navigation open on larger screen devices (hello, iPad)
  • Bringing polished version to more devices.

sidetap's People

Contributors

jkintscher avatar kimku avatar pfiller avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.