Skip to main content

evolve_path

Function evolve_path 

Source
pub fn evolve_path(progress: f64, path: &str) -> EvolvedPath
Expand description

Animates an SVG path from invisible to full length.

Ported from Remotion’s evolvePath(progress, path).

Returns an EvolvedPath struct containing CSS stroke_dasharray and stroke_dashoffset.