CubicBezier
A CSS cubic-bezier curve: x1, y1, x2, y2.
Verwendung
Ease a panel into place over a fixed duration.
Dieser Typ wird verwendet von easing
// 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
export type CubicBezier = readonly [number, number, number, number];Mitglieder 5
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
0 | number | Ja | — |
1 | number | Ja | — |
2 | number | Ja | — |
3 | number | Ja | — |
length | 4 | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.