From c18b81b2f26123481558cb3fffc794c2c13f74ad Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Thu, 8 Feb 2024 15:43:45 -0700
Subject: maintenance

---
 src/scenes/flirtingwithfunctions.tsx | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

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

diff --git a/src/scenes/flirtingwithfunctions.tsx b/src/scenes/flirtingwithfunctions.tsx
index 7f5f9da..603ffc4 100644
--- a/src/scenes/flirtingwithfunctions.tsx
+++ b/src/scenes/flirtingwithfunctions.tsx
@@ -1,5 +1,12 @@
 import { Img, Video, makeScene2D } from "@motion-canvas/2d";
-import { beginSlide, createRef, map, tween } from "@motion-canvas/core";
+import {
+  Direction,
+  beginSlide,
+  createRef,
+  map,
+  slideTransition,
+  tween,
+} from "@motion-canvas/core";
 import sad from "../../public/img/sad.mp4";
 import emacsmac from "../../public/img/emacsmac.jpg";
 
@@ -9,8 +16,10 @@ export default makeScene2D(function* (view) {
   const startX = 1200;
   const endX = 300;
 
-  yield view.add(<Video width={300} ref={vid} src={sad} x={0} />);
-  yield view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />);
+  view.add(<Video width={300} ref={vid} src={sad} x={0} />);
+  view.add(<Img width={200} ref={img} src={emacsmac} x={startX} />);
+
+  yield* slideTransition(Direction.Right);
 
   yield vid().play();
   yield vid().loop(true);
-- 
cgit v1.2.3-70-g09d2

