Answer the question
In order to leave comments, you need to log in
How to set toggle close animation?
There is a code like this
$(document).ready(function(){
$(".css-check").click(function(){
$(".telephone").animate({
height:'toggle'
}, 600, 'easeOutBack');
});
});
Answer the question
In order to leave comments, you need to log in
And what does toggle in the height property mean in your example?
Why not use the slideToggle function? She does the same for you!
i like to add class and animate with css transition more. Eats less resources, but no animation in IE9 and below.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question