What is the difference between CSS3 ease-in , ease-out transitions, etc.?
ease-in
ease-out
CSS3 transitions and animation support facilitate the process, formally referred to as the "sync feature." Common are ease-in , ease-out , ease-in-out , ease and linear , or you can specify your own using cubic-bezier() .
ease-in-out
ease
linear
cubic-bezier()
cubic-bezier
In principle, attenuation is deceleration, attenuation is slow acceleration, and linear is not to be done. Detailed resources can be found in the documentation for timing-function in MDN .
timing-function
And if you really want to get the above exact effects, you will be amazed at the amazing Lea Verous cubic-bezier.com ! Its also useful for graphically comparing various synchronization functions.
Another synchronization steps() function acts as linear , but only performs a finite number of steps between the start of the transition and its end. steps() was most useful to me in CSS3 animations, not transitions; A good example is loading indicators with dots. Traditionally, a series of still images has been used (for example, eight dots, two changing the color of each frame) to create the illusion of movement. With the steps(8) animation and rotate transform, you use motion to create the illusion of individual frames! So funny.
steps()
steps(8)
rotate