I'm currently looking into chaining my jquery code. An element needs to ditch a border, animated. My solution: animate the borderWidth to zero and then remove the class:
$(".imgWrap", element).animate({ borderWidth: "0px" }).end()
.removeClass("border");
animate() is supposed to return the wrapped element, but what I understand from the jQuery API, end()
will return the object to its state before the call to .find
.
.find
is in the context of the example so I took the liberty to replace it with .animate
. Alas, this does not work for me. The result of .end()
is the result of .animate()
.