-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
73 lines (72 loc) · 2.07 KB
/
tailwind.config.js
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
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
animation: {
fadeInUp: "fadeInUp 500ms ease-out",
loader: "loader 600ms linear infinite",
},
keyframes: {
loader: {
"0%": { transform: "rotate(0)" },
"50%": { transform: "rotate(180deg)" },
"100%": { transform: "rotate(360deg)" },
},
ripple: {
"0%": { width: 0, height: 0, opacity: 1 },
"100%": { width: "500px", height: "500px", opacity: 0 },
},
slideInFromDown: {
from: { transform: "translateY(100vh)" },
to: { transform: "translateY(0px)" },
},
slideInFromUp: {
from: { transform: "translateY(-100vh)" },
to: { transform: "translateY(0px)" },
},
slideInFromLeft: {
from: { transform: "translateX(-100vw)" },
to: { transform: "translateX(0px)" },
},
slideInFromRight: {
from: { transform: "translateX(100vw)" },
to: { transform: "translateX(0px)" },
},
zoomIn: {
from: { transform: "scale(0)" },
to: { transform: "scale(1)" },
},
slideOutToDown: {
from: { transform: "translateY(0px)" },
to: { transform: "translateY(100vh)" },
},
slideOutToUp: {
from: { transform: "translateY(0px)" },
to: { transform: "translateY(-100vh)" },
},
slideOutToLeft: {
from: { transform: "translateX(0px)" },
to: { transform: "translateX(-100vw)" },
},
slideOutToRight: {
from: { transform: "translateX(0px)" },
to: { transform: "translateX(100vw)" },
},
zoomOut: {
from: { transform: "scale(1)" },
to: { transform: "scale(0)" },
},
},
},
},
plugins: [
plugin(function ({ addUtilities }) {
addUtilities({
".rotate-y-90": {
transform: "rotateY(90deg)",
},
});
}),
],
};