-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
113 lines (112 loc) · 4.08 KB
/
tailwind.config.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
//resource : https://animista.net/
animation: {
"scale-out-center": "scale-out-center 0.25s cubic-bezier(0.550, 0.085, 0.680, 0.530) forwards",
"scale-in-center": "scale-in-center 0.25s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards",
"shadow-pulse": "shadow-pulse 2s infinite",
"bounce-in-top": "bounce-in-top 1.1s both",
"pulsate-bck": "pulsate-bck 0.5s ease-in-out infinite both",
"fade-in-bottom": "fade-in-bottom 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards",
},
keyframes: {
"scale-out-center": {
"0%": {
opacity: "1",
transform: "scale(1)"
},
"100%": {
opacity: "0",
transform: "scale(0)"
}
},
"scale-in-center": {
"0%": {
opacity: "0",
transform: "scale(0)"
},
"100%": {
opacity: "1",
transform: "scale(1)"
}
},
"shadow-pulse": {
"0%": {
boxShadow: "0px 0px 5px 0px #7e22ce"
},
"50%": {
boxShadow: "0px 0px 15px 0px #7e22ce"
},
"100%": {
boxShadow: "0px 0px 5px 0px #7e22ce"
}
},
'bounce-in-top': {
'0%': {
transform: 'translateY(-500px)',
'animation-timing-function': 'ease-in',
opacity: "0",
},
'38%': {
transform: 'translateY(0)',
'animation-timing-function': 'ease-out',
opacity: "1",
},
'55%': {
transform: 'translateY(-65px)',
'animation-timing-function': 'ease-in',
},
'72%': {
transform: 'translateY(0)',
'animation-timing-function': 'ease-out',
},
'81%': {
transform: 'translateY(-28px)',
'animation-timing-function': 'ease-in',
},
'90%': {
transform: 'translateY(0)',
'animation-timing-function': 'ease-out',
},
'95%': {
transform: 'translateY(-8px)',
'animation-timing-function': 'ease-in',
},
'100%': {
transform: 'translateY(0)',
'animation-timing-function': 'ease-out',
},
},
'pulsate-bck': {
'0%': {
transform: 'scale(1)',
},
'50%': {
transform: 'scale(0.9)',
},
'100%': {
transform: 'scale(1)',
},
},
"fade-in-bottom": {
'0%': {
opacity: '0',
transform: "translateY(50px)"
},
'100%': {
opacity: '1',
transform: "translateY(0)"
},
},
}
}
}
}
export default config