-
Notifications
You must be signed in to change notification settings - Fork 2
/
keyframes.ts
56 lines (54 loc) · 1.13 KB
/
keyframes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import type { CssKeyframes } from '@pandacss/types'
export function defineKeyframes<T extends CssKeyframes>(
config: T,
): CssKeyframes {
return config
}
export const keyframes: CssKeyframes = defineKeyframes({
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
fadeInDown: {
'0%': {
opacity: '0',
transform: 'translateY(-20px)',
},
'100%': {
opacity: '1',
transform: 'translateY(0)',
},
},
rubberBand: {
'0%': {
animationTimingFunction:
'cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971)',
transform: 'translateX(0)',
},
'19.15%': {
animationTimingFunction:
'cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432)',
transform: 'scaleX(1.5)',
},
'45.15%': {
animationTimingFunction:
'cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179)',
},
'100%': {
transform: 'translateX(200%)',
},
},
zoomIn: {
'0%': {
opacity: '0',
transform: 'scale(0.8)',
},
'75%': {
opacity: '0.5',
},
'100%': {
opacity: '1',
transform: 'scale(1)',
},
},
})