mirror of
https://github.com/status-im/status-web.git
synced 2025-02-12 20:46:26 +00:00
9a28570b44
* feat: adds custom theme setup with several options * feat: add typography and few examples with theme switch * fix: sort import rule * fix: remove unnecessary file * fix: changes from review * fix: changes as const as stated in tamagui's docs
29 lines
579 B
TypeScript
29 lines
579 B
TypeScript
import { createAnimations as createAnimationsCSS } from '@tamagui/animations-css'
|
|
import { createAnimations } from '@tamagui/animations-react-native'
|
|
|
|
export const animations = createAnimations({
|
|
bouncy: {
|
|
type: 'spring',
|
|
damping: 10,
|
|
mass: 0.9,
|
|
stiffness: 100,
|
|
},
|
|
lazy: {
|
|
type: 'spring',
|
|
damping: 20,
|
|
stiffness: 60,
|
|
},
|
|
quick: {
|
|
type: 'spring',
|
|
damping: 20,
|
|
mass: 1.2,
|
|
stiffness: 250,
|
|
},
|
|
})
|
|
|
|
export const animationsCSS = createAnimationsCSS({
|
|
fast: 'ease-in 150ms',
|
|
medium: 'ease-in 300ms',
|
|
slow: 'ease-in 450ms',
|
|
})
|