import { AnimationInternals } from "https://deno.land/x/remapper@3.1.2/src/animation.ts";
const { BaseAnimation } = AnimationInternals;
Bare minimum animation class.
Constructors
new
BaseAnimation(length?: number, data?: Json)Methods
private
convert(value: ComplexKeyframesAny)private
convertTime(time: number)add(property: string, value: KeyframesAny)
Add keyframes to a property, also sorts by time and makes optimizations if possible.
optimize(property?: ANIM, settings?: OptimizeSettings)
Remove similar values to cut down on keyframe count.