一个关于在 HTML、CSS 和 JavaScript 中伪造 iOS 7 用户界面的项目
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/
In your HTML, split your app into different views. Each view is made as follow:
{View Title}
Additionnally, you can have a tabbar displayed at the bottom by adding a tag to the body's HTML. Here's the tabbar's structure:
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.
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
暂无开放 Issues,或尚未同步最近议题。