How to stop an animation midway ?

Hello, sorry to bother again with this question, but can someone tell me what is the code to stop an animation midway caused by a mouse over action ?

exemple :

export function Element01_mouseIn(event, $w) {
$w(“#Element02”).show(“slide”,slideInOption)
$w(“#Element03”).hide(“slide”,slideInOption)
}

I would like the animation to stop midway if there is a mouseOut action, without waiting for the first animation to finish.

Thank you.