UNPKG

just-animate

Version:
9 lines (8 loc) 239 B
import { update } from './update'; import { REVERSE } from '../actions'; import { _ } from '../utils/constants'; export const reverse = (model, _data, ctx) => { model.rate *= -1; update(model, _, ctx); ctx.trigger(REVERSE); };