I'd like to transform image in web browser this way
->
more precisely, it should be 3D effect (like wrap the image around can). I'm considering these options:
- CSS3 transform (is it possible with matrix3d somehow?)
- HTML5 canvas (I don't have any experience here yet)
- applet or flash (this would be least preffered)
I hope there is some simple smart way how to achieve this, but some 3rd party heavy library could also do the job. Any suggestions?
You can slice your image into 1 pixel slices and then offset those slices to visually wrap around your cup:
Left: Image wrapped around top of cup, Right: Image wrapped around center of cup.
Here's example code and a Demo: