Utilização

Ease a panel into place over a fixed duration.

Este tipo é usado por easing

tsx
// Ease a panel into place over a fixed duration.
import { Box, Button, VStack, easing, motion, timing } from 'kuito';

export function Panel() {
  const x = motion(0);
  return (
    <VStack>
      <Button onPress={() => (x.value = timing({ duration: 250, easing: easing.out }).to(120))}>
        Move
      </Button>
      <Box translateX={x} width={80} height={80} backgroundColor="#2563eb" />
    </VStack>
  );
}

Declaração do tipo

ts
export type CubicBezier = readonly [number, number, number, number];

Membros 5

NomeTipoObrigatórioDescrição
0numberSim—
1numberSim—
2numberSim—
3numberSim—
length4Sim—
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.