2

I have been trying many different javascript frameworks like jquery, even animation specific ones like $fx and I cannot achieve the level of smoothness I want to achieve.

There are two examples of animations I have seen lately that are extremely smooth, either on the computer or of iPhone and iPad.

http://beta.jolicloud.com/ and http://www.apple.com/iphone/

How do they achieve such smooth animation?

I have been making very simple ones like simple text going from margin-top: 100px to 500px with either jquery or $fx and it is jittery...

4
  • 2
    those are both CSS3 animations, not JS Commented Jan 6, 2012 at 20:08
  • 3
    Smoothness of animation depends largely on the efficiency of the browser's engine and the speed of the computer. Neither is under your control as a developer. Commented Jan 6, 2012 at 20:11
  • mblaze: you should make it the answer. Commented Jan 6, 2012 at 20:25
  • Another important aspect you should have an eye on is image quality. Higher image quality is inversely related to animation performance. Commented Jan 6, 2012 at 20:52

3 Answers 3

3

Both of those sites use CSS transitions and CSS animations which are smoother than JS animation (CSS animation is based on keyframes and moves much more smoothly. JS animation is essentially just the keyframes like stop-motion so it's more jittery)

Sign up to request clarification or add additional context in comments.

Comments

0

Use jquery easing with your script for smooth animation. http://gsgd.co.uk/sandbox/jquery/easing/

Comments

0

Lookup http://jquerymobile.com/ for mobile optimization of your transitions,

Also, lookup http://api.jquery.com/animate/ to change from one state to another.

There are duration and easing properties for your "smoothness" :)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.