Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery animate easing

Quick question : how do I call jQuery's animate() without any easing parameters? e.g. without any effects.

Cheers!

like image 737
yoda Avatar asked Jan 19 '23 10:01

yoda


1 Answers

Write

$('#elem').animate({
    top: '0px',
    left: '0px'
}, 5000, 'linear');

Extract from jQuery API:

The only easing implementations in the jQuery library are the default, called swing, and one that progresses at a constant pace, called linear.

like image 98
Lapple Avatar answered Jan 25 '23 23:01

Lapple