I wrote the following code: var anim = morpheus([el, el2], { left: 50+"%", top: 50+"%" }); Then I had run it in Chrome and inspected el and el2 with the developer tools, their left and top were all animated to "50px" instead of "50%";
I wrote the following code:
var anim = morpheus([el, el2], {
left: 50+"%",
top: 50+"%"
});
Then I had run it in Chrome and inspected el and el2 with the developer tools, their left and top were all animated to "50px" instead of "50%";