Add an easing to jQuery animate() function.
- by user348250
Hello!
I'm triying to add an easing function to this code. So I replaced "swing" with "easeInOutQuint" (for example) but it's not working. I'm using jquery 1.4.2 and jquery easing 1.3 downloaded from here (http://gsgd.co.uk/sandbox/jquery/easing/) Any help will be greatly appreciated! Thank you!
$(window).load(function() {
$('.trigger').click(function() {
$('.panel').animate({
width: ['toggle', 'swing'],
height: ['toggle', 'swing'],
opacity: 'toggle'
}, 190, 'linear', function() {
});
});