I have a question regarding css (transition) animation spec.
The simple code looks like:
####css####
div {
transition-property: transform;
transition-duration: 2s;
}
####js####
//init
div.style.trasform = translate3d(0,0,0);
// at some point, the y offset of transform is changed to 100
div.style.trasform = translate3d(0,100,0);
// 1 sec after, change again
div.style.trasform = translate3d(0,1000,0);
Question:
What should be expected on screen?
Timeline 0 ------> 1 -----> 2 -------> 3 second
A: Postion: 0 ------> 50 ---------------> 1000
B: Position 0 ------> 50, jump to 0 ----> 1000
Or others?
-kangyuan