moving an object is quiet simple. imagine this:
$("#myelement").animate({left:'+=200'},2000);
the problem is that I want my element to start moving slowly and speed up continuously along the way.
does anyone have a clue how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://gsgd.co.uk/sandbox/jquery/easing/
You need to use the jQuery easing plugin, and use an EASE IN option. I recommend ‘easeInExpo’ but you can see all the options here: http://jqueryui.com/demos/effect/easing.html
If all you need is easing, I think jQuery ui (which has the plugin built in) is overkill. You can just use the plugin in a lean form.
It would look something like this:
You may also like ‘easeInCubic’