Coder Social home page Coder Social logo

pier-oliviert / iphoneperspective Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 0.0 496 KB

A CSS/Javascript snippet that lets you present your iOS app in perspective iPhone with dynamic lightning.

Home Page: http://www.pothibo.com

Ruby 23.51% CoffeeScript 36.40% JavaScript 40.09%

iphoneperspective's Introduction

Supported browser:

Chrome, Safari.

How to use

  1. Copy the content of iphone.html (everything and including div.scene)
  2. Add the /stylesheets /images and /javascripts content to your project
  3. Profit!

Within div.scene, you have a div with a classname "screen". You can add anything you want in there and it will be rendered within the iPhone. It will also follow the perspective changes.

Todo

  • I would like to add a fallback support for Firefox and IE. I'll probably add it soon.
  • Fix the shadow (It's a bit off)
  • Any other bug fix that would be required.

Contribute

I know this snippet isn't perfect. If you make a fix, please submit a pull request, I'll merge it happily.

This project uses quite a few open source project. If you want to work on the sources, you need to be familiar with Ender, CoffeeScript and Compass

Ender is built with qwery, bonzo and domready.

If you need any help with setting your development project, you can reach me on Twitter (@pothibo) or fill a bug issue.

Credits

Thank you to Tom Giannattasio and Dezine

I based my work around Tom's iPad and used Dezine's iPhone 4 as a reference. I also used some of his techniques for the speaker and camera lens.

Thank you everyone, you can follow @pothibo on Twitter.

iphoneperspective's People

Contributors

pier-oliviert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.