Usage

Fade a view on entry or removal.

tsx
// Fade a view on entry or removal.
import { Box, fade, slide, spring } from 'kuito';

<Box enter={fade.and(slide.up(12))} exit={fade} layout={spring()} />;

Signatures

ts
(config?: SpringConfig): Animation

Parameters

NameTypeRequiredDescription
configSpringConfigNo—
Default: {}

Returns

Animation<number>

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.