How do I compete the transformation matrix needed to transform a rectangle into a trapezium?

前端 未结 4 1897
青春惊慌失措
青春惊慌失措 2020-12-19 18:38

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

4条回答
  •  旧时难觅i
    2020-12-19 18:46

    Ah - thinking a little more, 2d matrix transforms can only rotate, skew or transform. That means that lines that are parallel before transformation are parallel afterwards.

    I'll leave this question here in case anyone else falls into the same line of thinking!

提交回复
热议问题