CubicBezier
A CSS cubic-bezier curve: x1, y1, x2, y2.
Utilização
Ease a panel into place over a fixed duration.
Este tipo é usado por 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>
);
}Declaração do tipo
export type CubicBezier = readonly [number, number, number, number];Membros 5
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
0 | number | Sim | — |
1 | number | Sim | — |
2 | number | Sim | — |
3 | number | Sim | — |
length | 4 | Sim | — |
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.