diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-07 11:06:03 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-07 11:06:03 -0700 |
commit | 6a3ce850c5bb28875d424230998e811a699df37d (patch) | |
tree | eb6cd556e06864d722f7a3415c96bced8c89a66b /src/scenes/flirtingwithfunctions.tsx | |
parent | 1e53c846e40bb7a8eb733542b2cb9fcd0ca996a8 (diff) | |
download | compiling-the-lambda-calculus-6a3ce850c5bb28875d424230998e811a699df37d.tar.gz compiling-the-lambda-calculus-6a3ce850c5bb28875d424230998e811a699df37d.zip |
more
Diffstat (limited to 'src/scenes/flirtingwithfunctions.tsx')
-rw-r--r-- | src/scenes/flirtingwithfunctions.tsx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/scenes/flirtingwithfunctions.tsx b/src/scenes/flirtingwithfunctions.tsx index f833ce9..7f5f9da 100644 --- a/src/scenes/flirtingwithfunctions.tsx +++ b/src/scenes/flirtingwithfunctions.tsx @@ -1,13 +1,5 @@ -import { Img, Layout, Txt, Video, makeScene2D } from "@motion-canvas/2d"; -import { - Direction, - beginSlide, - createRef, - map, - slideTransition, - tween, -} from "@motion-canvas/core"; -import { theme } from "../theme"; +import { Img, Video, makeScene2D } from "@motion-canvas/2d"; +import { beginSlide, createRef, map, tween } from "@motion-canvas/core"; import sad from "../../public/img/sad.mp4"; import emacsmac from "../../public/img/emacsmac.jpg"; @@ -17,8 +9,8 @@ export default makeScene2D(function* (view) { const startX = 1200; const endX = 300; - view.add(<Video width={300} ref={vid} src={sad} x={0} />); - view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />); + yield view.add(<Video width={300} ref={vid} src={sad} x={0} />); + yield view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />); yield vid().play(); yield vid().loop(true); |