A flat CSS iPhone/iPad. Clicking the home button triggers the transformation.
Because the shapes are all sized in ems, the size of the mockup can easily be changed in CSS by adding a rule for #device to change the font size of the element (best done in percents).
A Pen by Collin Graves on CodePen.