A function is a type of Vidar property that is evaluated every frame.
// the layer's `x` property will always be one tenth of the time elapsed options.x = (layer, reltime) => 0.1 * reltime;
// the element's opacity will be randomized each animation frame options.opacity = (layer, reltime) => Math.random();
The value of this property is a function that is passed two arguments, element and reltime.
element
reltime
DOMHighResTimeStamp
There was an error while loading. Please reload this page.