Skip to main content

parse

Function parse 

Source
pub fn parse(v: &Value) -> Result<Vec<Keyframe>, String>
Expand description

Stops from plain data: a list of maps with any of at, width, height, bg, radius, opacity, in the forms the props themselves take (sizings as a number, "grow", "50%", {grow} / {percent}; colors as 0xRRGGBBAA or "#hex"). Every binding funnels its keyframes through here, so the shape is the same in JSX, Lua and C.