Chrome, Safari.
- Copy the content of iphone.html (everything and including div.scene)
- Add the /stylesheets /images and /javascripts content to your project
- 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.
- 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.
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.
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.