diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-13 20:00:02 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-13 20:00:02 -0700 |
| commit | 0c476e92e1807928ffb30864126076ef4c6a0821 (patch) | |
| tree | a4992161ce4b6203edffb5d78533e9c73e61e6f1 /src/scenes/parttwo.tsx | |
| parent | 512c245466fad78106a046c1ea6233acdcc3e4de (diff) | |
| download | fslc-compiling-the-lambda-calculus-0c476e92e1807928ffb30864126076ef4c6a0821.tar.gz fslc-compiling-the-lambda-calculus-0c476e92e1807928ffb30864126076ef4c6a0821.zip | |
Diffstat (limited to 'src/scenes/parttwo.tsx')
| -rw-r--r-- | src/scenes/parttwo.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/scenes/parttwo.tsx b/src/scenes/parttwo.tsx new file mode 100644 index 0000000..eb62e09 --- /dev/null +++ b/src/scenes/parttwo.tsx @@ -0,0 +1,16 @@ +import { Layout, Txt, makeScene2D } from "@motion-canvas/2d"; +import { Direction, beginSlide, slideTransition } from "@motion-canvas/core"; +import { theme } from "../theme"; + +export default makeScene2D(function* (view) { + yield view.add( + <Layout layout direction="column" alignItems="center"> + <Txt fontFamily={theme.font} fontSize={100} fill={theme.text.hex}> + Part Two + </Txt> + </Layout> + ); + + yield* slideTransition(Direction.Right); + yield* beginSlide("Part Two"); +}); |
