Git Product home page Git Product logo

project-tyson's Introduction

Project-Tyson
=============

A project about faking the UI of iOS 7 in HTML, CSS and Javascript.
More info: http://c2prods.com/2013/cloning-the-ui-of-ios-7-with-html-css-and-javascript/


How to use this project
=======================
In your HTML, split your app into different views. Each view is made as follow:
<section class="{hidden|active}" id="view-{ID}">
	<header>
		<h1>{View Title}</h1>
		<button class="{right|left,bold,green,arrow}"  data-vin="view-{targetID}" data-sd="{sl|sr|popin|popout}">
			<div class="label">Button Label</div>
		</button>
	</header>
	<div class="scrollMask"></div>
	<div class="scrollWrap">
		<div class="scroll">
			<div class="content">
				{content}
			</div>
		</div>
	</div>
</section>

Additionnally, you can have a tabbar displayed at the bottom by adding a <nav> tag to the body's HTML. Here's the tabbar's structure:
<nav>
	<button id="btn{ID}" class="{active}" data-vin="view-{targetID}">
		<div class="btn-icon" style="-webkit-mask-image: url({url});"></div>
		<div class="label">{button label}</div>
	</button>
</nav>

Finally, views are linked together by the Slide() javascript function. Buttons in the header are automatically binded to this function but you can choose to bind it to other HTML elements. You just have to make sure they feature the following data- attributes:
data-vin: the ID of the view to load (for instance data-vin="view-home")
data-sd: to indicate the slide direction (sl, sr, popin, popout)
Note that the Slide function can take an optionnal callback parameter to specify a callback function that will be called when the transition starts.


This repo uses the Elusive Iconfont github project
==================================================
Tabbar's icons are from the Elusive icon pack. The Elusive Iconfont is an icons webfont, optimized for use with twitter's bootstrap.

For examples & usage see http://aristath.github.com/elusive-iconfont/

Licence: [SIL](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)

project-tyson's People

Contributors

c2prods avatar sunbox 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.