diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-02 13:17:24 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-02 13:17:24 -0700 |
commit | 7d822f2ba2359e87d65c08a5a2a10e242e246b76 (patch) | |
tree | bb34c6feaefd815e8516a4a3ab7733311afb945e /src/scenes/partone.tsx | |
parent | 29dc79359a5bd85f492854c2bd6df320904dfdd2 (diff) | |
download | compiling-the-lambda-calculus-7d822f2ba2359e87d65c08a5a2a10e242e246b76.tar.gz compiling-the-lambda-calculus-7d822f2ba2359e87d65c08a5a2a10e242e246b76.zip |
add animation
Diffstat (limited to 'src/scenes/partone.tsx')
-rw-r--r-- | src/scenes/partone.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/scenes/partone.tsx b/src/scenes/partone.tsx new file mode 100644 index 0000000..aaf0187 --- /dev/null +++ b/src/scenes/partone.tsx @@ -0,0 +1,19 @@ +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) { + view.add( + <Layout layout direction="column" alignItems="center"> + <Txt fontFamily={theme.font} fontSize={100} fill={theme.text.hex}> + Part One + </Txt> + <Txt fontFamily={theme.font} fill={theme.text.hex}> + Flirting With Functions + </Txt> + </Layout>, + ); + + yield* slideTransition(Direction.Right); + yield* beginSlide("Part One"); +}); |