user844589
user844589

Reputation:

I need to add ease in effect to my code

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

Answers (1)

Moin Zaman
Moin Zaman

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

Related Questions