Hi there,
I will discuss about a device emulator which I had to make for one of my website. The basic idea is to allow the users to see how their websites would look like in a mobile device. The code snippet I am attaching here is default to IOS5, but you can make it dynamic and take it to a whole new level of craziness.
Lets see the output of the code first. This will give a better idea of what I am doing:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEXsYNZ4lLHKmzzugoJiBsCopwPjIrDVRNLG-RmsEokWGs7NXAJUVOcAIfm73WAIpCPP4miGjE2iLkcop2crxjm_47bXa9NZk7h6NRU7hCfc8t-K2fLuVqh6c3MlhmEI6d_OZXe_zbZ6Zb/s400/sample1.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx5z8ZTvXn29MXBvZ9XsCmfcx93-2q2nCIvFJjrzFHx0CuE9Psso4C0hWCtwADjQ6Zfc440X_0gFVazmo3KPCRyvinuvKbJroKx9iL987cSLjTVE8Sg2sPWGjTK41239O_gPXg9x25gFny/s400/sample2.png)
Download demo: device-emulate.zip
Explanation: