spring
With a spring; it keeps the velocity of what it interrupts.
Usage
Fade a view on entry or removal.
// 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
(config?: SpringConfig): AnimationParameters
| Name | Type | Required | Description |
|---|---|---|---|
config | SpringConfig | No | — 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.