Back to docs
Animation
Flip
3D horizontal or vertical flip transition.
Install
npx shadcn@latest add @native-bits/flipDependencies
react-native-reanimated
animationtransitionmobile
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | - | Animated content |
| direction | 'horizontal' | 'vertical' | 'horizontal' | Flip axis |
| duration | number | 800 | Duration in ms |
Usage
```tsx
import { flip } from '@/components/native-bits/flip'
<Flip direction="horizontal">
<DealCard />
</Flip>
```Source code
Loading...