Animation is the rapid display of a sequence of images to create an illusion of movement.
$.fn.animate()
transform
& transform-origin
skew
, scale
, rotate
, translate
perspective
& perspective-origin
scale3d
, rotateY
, rotateY
, rotateZ
, translate3d
transition: [
<property> ||
<duration> ||
<timing-function> ||
<delay> ]
animaton: [
<animation-name> ||
<duration> ||
<timing-function> ||
<delay> ||
<iteration-count> ||
<direction> ||
<fill-mode> ]
@keyframes animation-name {
0%, 100% {...}
from, to {...}
50% {...}
}
Canvas is Bitmap
getContext('2d')
arc
, stroke
, fill
, ...
scale
, rotate
, translate
, transform
drawImage
setTimeout
requestAnimationFrame
matrix3d(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
)
scale
and translate
matrix3d(
sX, 0, 0, 0,
0, sY, 0, 0,
0, 0, sZ, 0,
tX, tY, tZ, 1
)
matrix3d(
cos(Y)cos(Z),
cos(X)*cos(Z)
+sin(X)sin(Y)cos(Z),
sin(X)sin(Z)
-cos(X)sin(Y)cos(Z), 0,
...
)
A×B
≠B×A
scale
×rotate
×translate