Manages animations. After creating, start some animations then call update
regularly. trigger_cb is a callback that’s called whenever a new animation
is started, which can be used to start real-time updates or whatever.
Adds the method set_ease for animation to HistPrim to parallel set.
duration is in milliseconds. f is a function that takes an input of 0..1
representing linear progress of the easing and returns another 0..1
representing the eased visual progress, as the methods in ezing.