You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/7-vanilla.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ nav: 7
8
8
9
9
### Differences to React usage
10
10
11
-
- In React you use `useTimeline(...)` which ties into the render loop for you.
12
-
- In vanilla you call `start(timeline)` and invoke the returned function every frame with `deltaSeconds` (the library internally clamps large deltas to ~1/30s for stability).
11
+
- In React you use `useRunTimeline(...)` which ties into the render loop for you.
12
+
- In vanilla you call `runTimeline(timeline)` and invoke the returned function every frame with `deltaSeconds` (the library internally clamps large deltas to ~1/30s for stability).
13
13
14
14
## Build a scene with `@pmndrs/timeline`
15
15
@@ -25,7 +25,7 @@ Below is a complete example using two spheres and a camera that alternates betwe
0 commit comments