I need a smooth slide effect and i cant seem to understand what I am doing wrong. I have tried the following
$(document).ready(function(){
$('.drop2').click(function(){
var $next = $(this).parent().next('li.drop_down2');
if($next.is(':visible')) {
$next.animate( {'display':'none'}, 'slow', 'easeOutBounce');
} else {
$next.animate( {'display':'block'}, 'slow', 'easeOutBounce');
}
});
});
$(document).ready(function(){
$('.drop2').click(function(){
var $next = $(this).parent().next('li.drop_down2');
if($next.is(':visible')) {
$next.slideUp({
duration: 1000,
easing: easeInSine,
complete: callback});
} else {
$next.slideDown();
}
});
});
Is there something I am doing wrong to make this smooth effect happen