Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply easing on jquery ui show?

I'm trying to apply easing on a jquery ui show effect. Ideally the api would look something like this:

$(this).show('scale', {
  duration: 1000,
  easing: 'easeOutBounce', 
});

Currently the element is at display:none. I need to show it with the scaling effect and have an easing.

Do I have to separate the commands or is there something like this that would work?

Thanks.

like image 929
Harry Avatar asked Apr 16 '11 23:04

Harry


1 Answers

I've tested it on jsfiddle and works:

$('.div1').show('scale', {
  duration: 1000,
  easing: 'easeOutBounce', 
});​

http://jsfiddle.net/tenshimsm/AUM6d/1/

like image 193
msmafra Avatar answered Sep 28 '22 08:09

msmafra