title: javascript library to perspective distort a drawing
body: <p>I have a drawing with several lines inside it and I need to animate it moving it and at the same time trasforming it from a rectangle to a parallelogram, as in the toy example image below. I wonder if there are any libraries which can perform such operations without the need to write down a complex and inefficient routine by myself. I am ready to use some graphic libraries as d3, Raphael or Highcharts which I already know a bit, but I don't know if they have a routine such the one I have described. What's the easiest thing to do?
  <img src="https://i.stack.imgur.com/glC75.png" alt="example"></p>