Transitions
Transitions work exactly like in plain CSS. They use React Native's Animated
under the hood to provide near-native performance. You can transition any number or color property seamlessly.
@see https://developer.mozilla.org/en-US/docs/Web/CSS/transition
Syntax:
#
PropertiesProperty | Type | Default | Description |
---|---|---|---|
transition | See syntax | -- | Groups all the properties below |
transitionProperty | string or string[] 1 | -- | Defines which style properties to animate |
transitionDuration | number or { property: number} | 1000 | Duration of the animation in milliseconds |
transitionTimingFunction | Easing or { property: Easing} 2 | ease | Easing function of the animation |
transitionDelay | number or { property: number} | 0 | Delay between animations in milliseconds |
2. Skyle provides an extended `Easing` import (as shown above), but you can also use React Native's `Easing`.