UNPKG

just-animate

Version:
12 lines (11 loc) 318 B
import { update } from './update'; import { _ } from '../utils/constants'; export const updateTime = (model, time, ctx) => { const currentTime = +time; model.time = isFinite(currentTime) ? currentTime : model.rate < 0 ? model.duration : 0; update(model, _, ctx); };