I\'m playing around with css transforms and the equivalent filters in IE, and want to simulate perspective by transforming a 2d rectangle into a trapezium.
Specifica
There are 2 answers for it in:
how to skew image like this
One for the stripe-based transformation which should be good enough for the original question (transform rectangle to a trapezoid):
https://stackoverflow.com/a/10427836/6336464
The other is a bit more complicated but allows custom pixel-based transformation based on a 4x2 matrix (transform rectangle to a convex quadrilateral where each corner of the quadrilateral can be custom-defined):
https://stackoverflow.com/a/37236664/6336464