I have But would also like to invoke this via javas
div.animate:hover{
//do stuff
}
As described in Trigger css hover with JS this is not possible as-is (if you want it as described exactly at the time of the creation of this answer).
But the main goal is achievable by:
hover (or whatever name) as well as the selector :hover in the CSS..addClass("hover") to trigger CSS, and .trigger("hover") or .trigger("mouseenter") to trigger the JS.mouseleave handler. or 2nd .hover() handler, clears the hover class if present.