An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
window.TIMINGS = {
"intro": {
"dur": 12.384,
"marks": {
"sub": 3.49,
"both": 7.643
},
"cues": [
[
0.104,
"Chapter five."
],
[
1.237,
"Adding and stretching vectors."
],
[
3.49,
"Vectors can be added, and they can be multiplied by a number."
],
[
7.643,
"Each one is easy with the numbers, and each one has a picture."
]
]
},
"add": {
"dur": 40.248,
"marks": {
"v": 1.992,
"w": 3.568,
"q": 5.208,
"tops": 6.367,
"bots": 9.805,
"res": 13.529,
"never": 17.122,
"ex2": 26.497,
"t2": 31.172,
"b2": 34.401,
"r2": 37.878
},
"cues": [
[
0.117,
"Here are two vectors."
],
[
1.992,
"v is three, one."
],
[
3.568,
"w is one, two."
],
[
5.208,
"How do we add them?"
],
[
6.367,
"Add the top numbers: three plus one is four."
],
[
9.805,
"Add the bottom numbers: one plus two is three."
],
[
13.529,
"So v plus w is the vector four, three."
],
[
17.122,
"Tops add to tops, and bottoms add to bottoms."
],
[
20.872,
"They never mix: steps to the right add up with steps to the right, and steps up with steps up."
],
[
26.497,
"Another one: two, minus one, plus minus four, three."
],
[
31.172,
"Top: two plus minus four is minus two."
],
[
34.401,
"Bottom: minus one plus three is two."
],
[
37.878,
"So the sum is minus two, two."
]
]
},
"tiptail": {
"dur": 49.848,
"marks": {
"arrows": 1.315,
"slide": 6.172,
"same": 12.018,
"trip": 17.266,
"then": 20.312,
"end": 21.693,
"sum": 24.01,
"count": 28.255,
"match": 35.56,
"ex2": 38.685,
"follow": 42.409,
"read": 46.224
},
"cues": [
[
0.104,
"Now the picture."
],
[
1.315,
"Here are v and w as arrows, both starting at the origin."
],
[
6.172,
"To add them, slide w, without turning it, until its tail sits on the tip of v."
],
[
12.018,
"It's still w: one step right and two steps up."
],
[
15.781,
"It has only moved."
],
[
17.266,
"Now follow the trip: first along v, then along w."
],
[
21.693,
"You end up at the point four, three."
],
[
24.01,
"The arrow from the origin to that end is v plus w."
],
[
28.255,
"Count the steps."
],
[
29.714,
"Three right, then one more right: four right."
],
[
32.5,
"One up, then two more up: three up."
],
[
35.56,
"Four, three: the same answer the numbers gave."
],
[
38.685,
"Now change v and w into the second example."
],
[
42.409,
"w rides on the tip of v, and the sum follows them."
],
[
46.224,
"It ends at minus two, two, just as the numbers said."
]
]
},
"order": {
"dur": 29.664,
"marks": {
"wv": 1.341,
"route": 5.898,
"land": 8.425,
"para": 10.964,
"nums": 17.018,
"rule": 26.133
},
"cues": [
[
0.104,
"Does the order matter?"
],
[
1.341,
"Let's add the other way round: w first, then v."
],
[
5.898,
"Walk along w, then along v."
],
[
8.425,
"We land on the same point, four, three."
],
[
10.964,
"The two trips are two sides of a parallelogram, and v plus w is its diagonal."
],
[
17.018,
"The numbers agree."
],
[
18.281,
"Three plus one and one plus three are both four."
],
[
22.188,
"One plus two and two plus one are both three."
],
[
26.133,
"So v plus w equals w plus v."
]
]
},
"q1": {
"dur": 3.048,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.12,
"Add these two vectors."
]
]
},
"live": {
"dur": 22.104,
"marks": {
"grab": 2.695,
"pull": 5.651,
"sum": 6.927,
"rule": 9.505,
"scrub": 13.359,
"move": 16.315,
"sum2": 19.388
},
"cues": [
[
0.104,
"The numbers and the picture stay linked."
],
[
2.695,
"Grab the tip of the moved w and pull it."
],
[
5.651,
"w changes, and so does v plus w."
],
[
9.505,
"Whatever w is, the sum ends where w ends."
],
[
13.359,
"Or change a number."
],
[
14.596,
"Make v's top number one: v gets shorter, w rides along with it, and the sum's top number drops by two as well."
]
]
},
"q2": {
"dur": 7.128,
"marks": {},
"cues": [
[
0.104,
"Your turn."
],
[
1.029,
"v stays where it is."
],
[
2.656,
"Move w, so that v plus w lands on the amber target."
]
]
},
"scale": {
"dur": 40.32,
"marks": {
"v": 4.023,
"vv": 5.781,
"tt": 7.474,
"pic": 11.393,
"long": 15.716,
"two": 18.125,
"rule": 19.505,
"name": 26.354,
"three": 31.953,
"t3": 33.333,
"long3": 37.018
},
"cues": [
[
0.104,
"The second operation: multiplying a vector by a number."
],
[
4.023,
"Take v equals two, one."
],
[
5.781,
"What is v plus v?"
],
[
7.474,
"Two plus two is four, and one plus one is two."
],
[
11.393,
"In the picture: v, and then v again, tip to tail."
],
[
15.716,
"The same direction, twice as long."
],
[
18.125,
"We call it two v."
],
[
19.505,
"The quick way: multiply both numbers by two."
],
[
22.917,
"Two times two is four, two times one is two."
],
[
26.354,
"The number in front is called a scalar, because it scales the vector."
],
[
30.664,
"We'll call it c."
],
[
31.953,
"Make c three."
],
[
33.333,
"Three times two is six, three times one is three."
],
[
37.018,
"Three times as long, still pointing the same way."
]
]
},
"shrink": {
"dur": 45.672,
"marks": {
"half": 2.07,
"th": 3.581,
"short": 7.773,
"neg": 10.365,
"tn": 12.461,
"flip": 18.854,
"neg2": 25.573,
"zero": 28.451,
"tz": 30.13,
"dot": 32.669,
"line": 37.096,
"all": 39.753
},
"cues": [
[
0.104,
"c doesn't have to be a whole number."
],
[
2.07,
"Make c one half."
],
[
3.581,
"Half of two is one, and half of one is one half."
],
[
7.773,
"The arrow shrinks to half its length."
],
[
10.365,
"Now make c minus one."
],
[
12.461,
"Minus one times two is minus two, and minus one times one is minus one."
],
[
18.854,
"The arrow flips around: the same length, the opposite direction."
],
[
23.659,
"We write it minus v."
],
[
25.573,
"c equals minus two flips it and doubles it."
],
[
28.451,
"And c equals zero?"
],
[
30.13,
"Zero times anything is zero, so zero v is the zero vector, a dot at the origin."
],
[
37.096,
"Now watch c run through the numbers."
],
[
39.753,
"Every multiple of v lies on one line through the origin: the line through v."
]
]
},
"more": {
"dur": 33.792,
"marks": {
"a": 2.175,
"at": 4.284,
"ar": 9.193,
"b": 16.432,
"bt": 19.453,
"sign": 26.25,
"br": 29.076
},
"cues": [
[
0.104,
"Two more, to practise."
],
[
2.175,
"Three times minus one, two."
],
[
4.284,
"Three times minus one is minus three."
],
[
7.188,
"Three times two is six."
],
[
9.193,
"Minus three, six: the same direction as minus one, two, and three times as far."
],
[
16.432,
"Now minus two times three, minus one."
],
[
19.453,
"Minus two times three is minus six."
],
[
22.812,
"Minus two times minus one is plus two: a minus times a minus gives a plus."
],
[
29.076,
"Minus six, two: twice as long, and pointing the opposite way."
]
]
},
"q3": {
"dur": 6.0,
"marks": {},
"cues": [
[
0.104,
"Your turn."
],
[
1.003,
"Change c until c times v is minus four, minus two."
]
]
},
"minus": {
"dur": 39.792,
"marks": {
"ex": 1.732,
"tops": 7.279,
"bots": 10.938,
"res": 15.339,
"how": 18.424,
"same": 19.583,
"flip": 23.867,
"ride": 25.234,
"end": 27.344,
"gap": 30.065,
"why": 35.885
},
"cues": [
[
0.104,
"Last, subtraction."
],
[
1.732,
"v minus w, with v three, one, and w one, two."
],
[
7.279,
"Subtract the tops: three minus one is two."
],
[
10.938,
"Subtract the bottoms: one minus two is minus one."
],
[
15.339,
"v minus w is two, minus one."
],
[
18.424,
"Here's the picture."
],
[
19.583,
"Taking away w is the same as adding minus w."
],
[
23.867,
"So flip w around, put its tail on the tip of v, and the trip ends at two, minus one."
],
[
30.065,
"And look: v minus w is also the arrow from the tip of w to the tip of v."
],
[
35.885,
"Because w, plus that arrow, gets you to v."
]
]
},
"minus2": {
"dur": 40.896,
"marks": {
"ex": 1.562,
"tops": 5.586,
"bots": 9.089,
"res": 12.617,
"pic": 15.938,
"steps": 20.521,
"slide": 25.091,
"same": 30.26,
"check": 32.747
},
"cues": [
[
0.104,
"One more subtraction."
],
[
1.562,
"v is two, three, and w is four, one."
],
[
5.586,
"Top minus top: two minus four is minus two."
],
[
9.089,
"Bottom minus bottom: three minus one is two."
],
[
12.617,
"So v minus w is minus two, two."
],
[
15.938,
"Now the picture."
],
[
17.057,
"Draw the arrow from the tip of w to the tip of v."
],
[
20.521,
"It goes two steps left, then two steps up: minus two, two."
],
[
25.091,
"Slide that arrow, without turning it, until its tail sits on the origin."
],
[
30.26,
"It is exactly v minus w."
],
[
32.747,
"And w, plus that arrow, gets you to v."
],
[
36.51,
"Four plus minus two is two, and one plus two is three."
]
]
},
"q4": {
"dur": 2.16,
"marks": {},
"cues": [
[
0.104,
"Quick check."
],
[
1.133,
"Subtract."
]
]
},
"wrap": {
"dur": 30.264,
"marks": {
"w1": 1.029,
"w2": 5.964,
"w3": 14.74,
"w4": 23.711,
"end": 28.073
},
"cues": [
[
0.104,
"To sum up."
],
[
1.029,
"To add two vectors, add the top numbers and add the bottom numbers."
],
[
5.964,
"In the picture, put the second arrow's tail on the first arrow's tip."
],
[
10.443,
"The sum goes from the origin to the end, and the order doesn't matter."
],
[
14.74,
"To multiply by a number c, multiply both numbers by c."
],
[
19.336,
"The arrow stretches, shrinks, flips, or vanishes."
],
[
23.711,
"v minus w is v plus minus one times w."
],
[
28.073,
"Now try the chapter practice."
]
]
},
"final1": {
"dur": 2.832,
"marks": {},
"cues": [
[
0.104,
"Chapter practice."
],
[
1.523,
"Add the vectors."
]
]
},
"final2": {
"dur": 2.592,
"marks": {},
"cues": [
[
0.091,
"Now multiply, and subtract."
]
]
},
"final3": {
"dur": 3.072,
"marks": {},
"cues": [
[
0.091,
"What does each number c do to the arrow?"
]
]
},
"final4": {
"dur": 3.168,
"marks": {},
"cues": [
[
0.104,
"Last set."
],
[
1.185,
"Make it happen with your hands."
]
]
},
"play": {
"dur": 12.024,
"marks": {
"go": 4.076
},
"cues": [
[
0.117,
"Playground."
],
[
1.094,
"Nothing here is marked right or wrong."
],
[
4.076,
"Change the numbers, drag the arrow tips, or draw on the board, and watch the sum follow."
],
[
10.378,
"Press continue when you're done."
]
]
},
"finish": {
"dur": 11.712,
"marks": {},
"cues": [
[
0.104,
"Well done."
],
[
1.133,
"That's the end of chapter five, adding and stretching vectors."
],
[
5.443,
"Next: we stretch two vectors and add them, both at once."
],
[
9.727,
"That's called a linear combination."
]
]
}
};