3D Effect for images

3D Effect for images

Hi guys!

I'm coding right now my own website and just have wondered is it possible to put an alpha image and scale its corners according to z-index.

Example: image1.png
Corner A {z-index:100}
Corner B {z-index:-100}
Corner C {z-index:-100}
Corner D {z-index:100}

And after all put another image in the middle of the first one so that second image could be like crossing the first one?

Sorry for being dummy...