Close Docs

Animations

Provides common animation helpers and predefined animation sets used across DiscoUI.

Usage

import DiscoAnimations from 'discoui/src/components/animations/disco-animations.js';

await DiscoAnimations.animationSet.page.in(element, { direction: 'forward' });
await DiscoAnimations.animationSet.page.out(element, { direction: 'back' });

direction accepts 'forward' or 'back' for page-like transitions.

Animation Sets

Helpers

Helper Parameters

animate(target, keyframes, options)

animateAll(items, hideInitially)