3
I’ve been playing with css Matrix3d in this code: http://jsfiddle.net/88Lv8kfp
Now I wanted a stitch in the middle to drag the element keeping the distortion, but I don’t know how to do.
So far, the only thing I got was to add a dot in the middle with jQuery, but I don’t know how to update its position.
$ ('<div>'). addClass ("pontos centrais")
.appendTo ('body'). posição ({
meu: "center",
em: "center",
de: elemento
});
I don’t have time to keep looking at the code now but I find the question interesting. Changing the element that will receive the points
body
forelement
you can drag everything together like this: http://jsfiddle.net/vkwru7dm/ The problem I haven’t had time to solve is to rearrange the math for the transformation after the reference change. I’ll take another look when I can.– Sergio
Did you write this code or take it from somewhere? If so, from where? A little documentation of the code would help.
– bfavaretto
Thanks @Sergio, you’re on the right track but the points should not distort.
– helderk
@bfavaretto have some info here http://franklinta.com/2014/09/computing-css-matrix3d-transforms/
– helderk
Solved your problem?
– durtto
No, I haven’t solved it the way I wanted to. I provisionally solved the problem with something similar to @Sergio suggested.
– helderk