From 7d822f2ba2359e87d65c08a5a2a10e242e246b76 Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Fri, 2 Feb 2024 13:17:24 -0700
Subject: add animation

---
 src/scenes/partone.tsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/scenes/partone.tsx

(limited to 'src/scenes/partone.tsx')

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");
+});
-- 
cgit v1.3

