animation registry.Function.setAnimation - GyldendalDigital/kobber GitHub Wiki

@gyldendal/kobber-components / animation-registry / setAnimation

setAnimation(el, animationName, animation): void

Defined in: packages/kobber-components/src/base/utilities/animation-registry.ts:53

Sets a custom animation for the specified element.

Parameters

el

Element

animationName

string

animation

null | ElementAnimation

Returns

void