スムーズなスライド効果が必要ですが、何が間違っているのか理解できません。私は次のことを試しました
$(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();
}
});
});
このスムーズな効果を実現するために私が間違っていることはありますか