Set effect duration based on a css property
-
29-10-2019 - |
Frage
$('.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?
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow