Is there any way to make a dropdown menu with animation with transform include a hover function

Not be working a hover function in first three second for example? As it have a function when mouse over it and out is cloed with setTimeout and is come from top and always when click on it is go tought button and close it. How can prevent this?