-
01-03-2012, 03:25 PM #1MMi Staff Writer
- Join Date
- Sep 2011
- Location
- Florida
- Posts
- 1,965
- Thanks
- 62
- Thanked 110 Times in 93 Posts
- Blog Entries
- 2
Developer Builds A Virtual iPhone: Pure CSS3, No Images Whatsoever

Here's something you don't see every day.
It's one thing when you have an iPhone 4 image and you make it animated on a Web Site with JavaScript, Flash, HTML5 or some other kind of animating code. But it's a whole new ball park when you actually make the iPhone 4 from scratch with no pictures, no templates, no canvases, but pure CSS3 code. That's right folks, take a good look at the screenshot above - there isn't a single image in it. It's pure CSS3 code.
Technically speaking, the screenshot above is a picture - the real deal can be seen on this Web Site. It's composed of 3,395 lines of CSS code and 335 lines of JavaScript code that can be viewed by seeing the page source through your Web Browser application. The project was built by Vasiliy Zubach, who is better known as TjRus all across the Internet. The best part about being made out of code instead of images is that it can load zippier, and also be scaled more effectively.
The CSS3 iPhone 4 features 3 fully functional functions; a working 'slide to unlock' bar that you can click and drag to get onto the home screen. It also has a working power button that you can click on to use, and a working home button that you can click on to use. Unfortunately, that's as far as the fun goes, albeit it's still an amazing concept and breaks the ice for CSS3 creations. The developer recommends that you view the content on Mac OS X with either the latest Apple Safari or the Latest Google Chrome Web Browser applications.
Aside from functions, the CSS3 iPhone 4 also has visual effects. It shows the correct date and time, the correct slide to unlock animations, and the correct SpringBoard animations. So it does hold some truly awesome functionality for being a completely virtual iPhone 4 with absolutely no images. We think that this is a very cool milestone for Web Development.
What do you think about the CSS3 iPhone 4? Share in the comments.
Sources: TjRussLast edited by Anthony Bouchard; 01-03-2012 at 04:13 PM.

-
01-03-2012, 03:29 PM #2Livin the iPhone Life
- Join Date
- Sep 2007
- Location
- Ireland
- Posts
- 1,116
- Thanks
- 37
- Thanked 158 Times in 121 Posts
Doesn't CSS need image assets? It can't just create different fonts, textures, images out of pure CSS code...can it?
-
01-03-2012, 03:45 PM #3Livin the iPhone Life
- Join Date
- Apr 2008
- Location
- The Future
- Posts
- 1,892
- Thanks
- 0
- Thanked 142 Times in 131 Posts
-
01-03-2012, 03:45 PM #4
Not the first one to create CSS3 iPhones

iOS Icons
Original iPhone
-
01-03-2012, 03:46 PM #5Green Apple
- Join Date
- Dec 2007
- Location
- Mechelen, Belgium, Belgium
- Posts
- 42
- Thanks
- 5
- Thanked 5 Times in 4 Posts
-
01-03-2012, 03:52 PM #6
Wow, taking a look at the css, this thing is incredible.
-
01-03-2012, 03:58 PM #7Livin the iPhone Life
- Join Date
- Sep 2007
- Location
- Ireland
- Posts
- 1,116
- Thanks
- 37
- Thanked 158 Times in 121 Posts
-
01-03-2012, 04:07 PM #8
-
01-03-2012, 04:12 PM #9"The Chuck Bass of Theming"
- Join Date
- Mar 2009
- Location
- Merced, CA
- Posts
- 3,999
- Thanks
- 1,640
- Thanked 16,591 Times in 2,189 Posts
CSS3 is very powerful. All you need to do is look at what some of the MMi themers here have been doing with CSS3/HTML5. Some of the widgets and animated lockscreens and wallpapers are clear evidence that flash is going out and HTML5 w/ CSS3 is coming in

CSS3 is capable of even making 3D canvas so what you see in the OP is just the tip of the CSS3/HTML5/Webkit iceberg
-
01-03-2012, 04:34 PM #10
You are right, but this is the first functioning iPhone, while limited, that has been created wholly in CSS3. The reason why this is interesting is because XCode used in iOS development uses very similar coding so CSS3 could become a useful testing platform since Apple does have limits on testing.
Another thing is, this could be another platform for mobile OS devices. 3000+ lines of code for a pretty decent virtual clone is nothing compared to the millions of lines of code used for iOS 5.
By the way, CSS3 makes a one size fits all screens. I didn't notice until I decided to try it on my iPhone 4S. When I pinched to zoom, everything focused in and still looked incredibly crisp and colorful.Last edited by Hillefied; 01-03-2012 at 04:38 PM.
-
01-03-2012, 04:56 PM #11
Lol, I did this awhile ago.
-
01-03-2012, 05:03 PM #12
-
01-03-2012, 06:02 PM #13iPhoneaholic
- Join Date
- May 2010
- Location
- San Diego, CA
- Posts
- 397
- Thanks
- 9
- Thanked 36 Times in 24 Posts
Man....I sure wish my iPhone 4 could boot as fast as this virtual one does!!
Cool stuff
El Zurdo
-
01-03-2012, 07:23 PM #14
How the hell did he create say the signal bar using CSS? Is it even possible without using images
-
01-03-2012, 11:01 PM #15My iPhone is a Part of Me
- Join Date
- Jul 2009
- Location
- Outter Space
- Posts
- 869
- Thanks
- 87
- Thanked 114 Times in 75 Posts
Very impressive. I downloaded the FREE Mac App on their site (demo version) pretty damn cool. Its called Ensoul
http://macpaw.com/download/ensoul?ut...m_source=tjrus
-
01-04-2012, 03:08 AM #16
-
01-04-2012, 06:19 AM #17iPhone? More like MyPhone
- Join Date
- Jan 2008
- Location
- New Jersey, USA
- Posts
- 225
- Thanks
- 3
- Thanked 22 Times in 19 Posts
So he created images using css. Very hard work but I am not dumb founded. All images are created using some form of coding.
I do have to say this is very impressive and from the looks of it a lot of hard work has gone into it! Still I don't get the hipe.
-
01-04-2012, 06:51 AM #18Green Apple
- Join Date
- Sep 2007
- Location
- West Palm Beach, FL
- Posts
- 62
- Thanks
- 1
- Thanked 4 Times in 4 Posts
Using IE8 at work. Looks like an iPhone made for an Atari. Works just as well as one too.
-
01-04-2012, 01:40 PM #19
lame. I managed to make one that uses no CSS and only runs in IE. Oh yeah!
The Virtual iPhone



LinkBack URL
About LinkBacks
Reply With Quote
