TimingConfig
Tunes a timing() animation's duration, easing and delay.
Utilisation
Animate through several keyframes.
Ce type est utilisé par keyframes
// Animate through several keyframes.
import { Box, keyframes, motion, repeat } from 'kuito';
const pulse = motion(1);
pulse.value = repeat(keyframes({ 0: 1, 50: 1.1, 100: 1 }, 600)); // one prop: an animation
const pop = keyframes({ 0: { opacity: 0, scale: 0.8 }, 100: { opacity: 1, scale: 1 } }, 300); // objects: an effect
<Box scale={pulse} enter={pop} />;Déclaration du type
export interface TimingConfig {
duration?: number;
easing?: CubicBezier;
delay?: number;
onEnd?: AnimationCallback;
}Membres 4
| Nom | Type | Requis | Description |
|---|---|---|---|
duration | number | Non | — |
easing | CubicBezier | Non | — |
delay | number | Non | — |
onEnd | AnimationCallback | Non | — |
onEnd — signatures de méthode
Signatures
(finished: boolean): voidParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
finished | boolean | Oui | — |
Retourne
void
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.