jquery 3.2.1 version animate() - callback function executing before animation completed
Hi All,
We have upgraded jquery version 3.2.1, animation()- callback function executing before animation is completed after execute next line.
$(".btn2").click(function(){
$("p").slideDown(1, function(){
console.log("inside")
});
console.log("outside")
});
JQuery 3.2.1 output
1.inside
2.outside.
JQuery 3.1.1 output
1.outside
2.inside.
Expected:
1.outside.
2.Inside
Please let me know if you have any concern,
Please provide solution for our query.
Regards,
Gopi G.