Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A CSS/Javascript snippet that lets you present your iOS app in perspective iPhone with dynamic lightning.
JavaScript CoffeeScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
images
javascripts
src
stylesheets
.gitignore
README.markdown
config.rb
iphone.html

README.markdown

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.

Something went wrong with that request. Please try again.