Set effect duration based on a css property
-
29-10-2019 - |
문제
$('.container').animate({ 'height': el.height() }, { duration: 300});
So el
's height can be smaller or greater than .container
's height.
How can I make it so the effect duration lasts longer when the difference between the current height and the one to which I'm animating is larger?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow