slide1 = ({
width: 1920,
height: 1080,
timeMin: 0,
timeMax: 1,
duration: 3,
render(time, ctx) {
const {width, height} = this;
ctx.fillStyle = 'lightgray';
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = 'black';
ctx.fillRect(
time * (width / 2 - 50) + 50,
50,
width / 2 - 50,
height - 100,
);
},
})