Verwendung

Ease a panel into place over a fixed duration.

Dieser Typ wird verwendet von 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>
  );
}

Typdeklaration

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

Mitglieder 5

NameTypErforderlichBeschreibung
0numberJa—
1numberJa—
2numberJa—
3numberJa—
length4Ja—
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.