views:

624

answers:

2

Is there any simple way to display the icon for my iphone apps on my webpage the same way they look in the appstore (i.e. with the glass effect and preferably with reflection)? I have very little experience in web coding so some sample code that I could just copy and paste would be great if this is possible. Thanks for any help.

+2  A: 

there is a great online generator that makes iphone looking icons for exactly this purpose:

http://www.flavorstudios.com/iphone-icon-generator

Mobs
If you only have a few icons to display on your webpage where manually processing them is realistic, I suggest you go this route. Otherwise I can post some of the resource files for masking icons and overlaying the glass effect that you could use to apply to icons in a more general fashion (say, if you had 10s or 100s of icons to display).
Sbrocket
Or i suppose you could just take a screenshot of your app's icon in the app store....
Mobs
Thanks for the suggestions, but I only have 8 icons atm so the manual solution is easiest in this case.
CG
Changed my mind, just found out the reflection code only works in Chrome for me so most people won't see it. Looks awesome in Chrome though.
CG
A: 

Not the glass effect, but you can get the rounded corners and the reflection by using this CSS:

    -webkit-box-reflect:below 0px -webkit-gradient(linear, left top, left bottom,
      from(transparent), color-stop(0.8, transparent), to(rgba(0,0,0,0.5)));
    -webkit-border-radius:12px;
    -moz-border-radius:12px;

It only works for the reflection in WebKit-browsers (not yet all) and the rounded corners work in FireFox as well.

Johan Kool
I would like to accept both answers here, since what I actually did was download the image from flavorstudios, fix it up, then use this reflection code. I picked this as the best since the site is a bit annoying in that you have to crop the image yourself and then redo the transparency. It takes < 1 min to do this but I had to base the choice on something. Thanks a lot to both of you.
CG