From 0c476e92e1807928ffb30864126076ef4c6a0821 Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Tue, 13 Feb 2024 20:00:02 -0700
Subject: add all the stuff

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

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

diff --git a/src/scenes/dna.tsx b/src/scenes/dna.tsx
new file mode 100644
index 0000000..9cb77bd
--- /dev/null
+++ b/src/scenes/dna.tsx
@@ -0,0 +1,22 @@
+import { Video, Layout, makeScene2D } from "@motion-canvas/2d";
+import {
+  Direction,
+  beginSlide,
+  createRef,
+  slideTransition,
+} from "@motion-canvas/core";
+import mitosis from "../../public/img/cell_division.mp4";
+
+export default makeScene2D(function* (view) {
+  const layout = createRef<Layout>();
+  const vid = createRef<Video>();
+
+  view.add(
+    <Video playbackRate={4} width={900} ref={vid} src={mitosis} x={0} />,
+  );
+
+  yield* slideTransition(Direction.Left);
+  yield vid().play();
+  yield vid().loop(true);
+  yield* beginSlide("show mitosis");
+});
-- 
cgit v1.3

