Skip to main content

register

Function register 

Source
pub fn register(name: &'static str, body: &'static str)
Expand description

Injects @keyframes {name} { {body} } unless name is already registered.

Registering the same name twice with different bodies is a bug — two crates have picked the same keyframe name and one is silently winning. In debug builds that panics; in release the first registration stands.