Set effect duration based on a css property
-
29-10-2019 - |
Question
$('.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?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow