OLD | NEW |
(Empty) | |
| 1 var transformTranslate = { |
| 2 keyframes: [ |
| 3 {transform: 'translateX(0px)'}, |
| 4 {transform: 'translateX(600px)'} |
| 5 ], |
| 6 color: 'darkgreen', |
| 7 vertical: true, |
| 8 stamps: [ |
| 9 {at: 0}, |
| 10 {at: 0.15}, |
| 11 {at: 0.25}, |
| 12 {at: 0.35}, |
| 13 {at: 0.5}, |
| 14 {at: 0.65}, |
| 15 {at: 0.75}, |
| 16 {at: 0.85}, |
| 17 {at: 1.05}, |
| 18 {at: 1.15}, |
| 19 ] |
| 20 }; |
| 21 |
| 22 var transformRotate = { |
| 23 keyframes: [ |
| 24 {transform: 'rotate(-10deg)'}, |
| 25 {transform: 'rotate(360deg)'} |
| 26 ], |
| 27 color: 'maroon', |
| 28 margin: 5, |
| 29 stamps: [ |
| 30 {at: 0}, |
| 31 {at: 0.05}, |
| 32 {at: 0.15}, |
| 33 {at: 0.25}, |
| 34 {at: 0.35}, |
| 35 {at: 0.45}, |
| 36 {at: 0.5}, |
| 37 {at: 0.55}, |
| 38 {at: 0.65}, |
| 39 {at: 0.75}, |
| 40 {at: 0.85}, |
| 41 {at: 0.95}, |
| 42 {at: 1.05}, |
| 43 {at: 1.15}, |
| 44 ] |
| 45 }; |
| 46 |
| 47 var transformScale = { |
| 48 keyframes: [ |
| 49 {transform: 'scale(0.1)'}, |
| 50 {transform: 'scale(1)'} |
| 51 ], |
| 52 color: 'peru', |
| 53 margin: 5, |
| 54 marker: false, // TODO(loyso): This mustn't affect cc/blink consistency. |
| 55 stamps: [ |
| 56 {at: 0}, |
| 57 {at: 0.05}, |
| 58 {at: 0.15}, |
| 59 {at: 0.25}, |
| 60 {at: 0.35}, |
| 61 {at: 0.45}, |
| 62 {at: 0.5}, |
| 63 {at: 0.55}, |
| 64 {at: 0.65}, |
| 65 {at: 0.75}, |
| 66 {at: 0.85}, |
| 67 {at: 0.95}, |
| 68 {at: 1.05}, |
| 69 {at: 1.15}, |
| 70 ] |
| 71 }; |
| 72 |
| 73 var animateOpacity = { |
| 74 keyframes: [ |
| 75 {opacity: 0}, |
| 76 {opacity: 1} |
| 77 ], |
| 78 color: 'navy', |
| 79 margin: 5, |
| 80 stamps: [ |
| 81 {at: 0}, |
| 82 {at: 0.05}, |
| 83 {at: 0.15}, |
| 84 {at: 0.25}, |
| 85 {at: 0.35}, |
| 86 {at: 0.45}, |
| 87 {at: 0.5}, |
| 88 {at: 0.55}, |
| 89 {at: 0.65}, |
| 90 {at: 0.75}, |
| 91 {at: 0.85}, |
| 92 {at: 0.95}, |
| 93 {at: 1.05}, |
| 94 {at: 1.15}, |
| 95 ] |
| 96 }; |
| 97 |
| 98 var simpleTests = [transformTranslate, transformRotate, transformScale, animateO
pacity]; |
| 99 |
OLD | NEW |