diff --git a/src/browser/webapi/animation/Animation.zig b/src/browser/webapi/animation/Animation.zig index 7c2e8839..4daaa8d5 100644 --- a/src/browser/webapi/animation/Animation.zig +++ b/src/browser/webapi/animation/Animation.zig @@ -151,6 +151,12 @@ pub fn getStartTime(self: *const Animation) ?f64 { pub fn setStartTime(self: *Animation, value: ?f64, page: *Page) !void { self._startTime = value; + + // if the startTime is null, don't play the animation. + if (value == null) { + return; + } + return self.play(page); }