Reputation:
I have to add easein effect for my animate function. Here below my codes
$('.img_left').animate({ 'margin-left' : '180px', 'opacity' : '1'}, 3000);
Pls help me
Upvotes: 0
Views: 111
Reputation: 25455
Vanilla jQuery supports only linear
and swing
easing options. More options are found in the jQuery UI suite.
To use them you do:
$('.img_left').animate({ 'margin-left' : '180px', 'opacity' : '1'}, 3000, 'linear');
Upvotes: 1