forked from frontendfyi/google-card-animation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
61 lines (61 loc) · 1.77 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{ts,tsx}"],
theme: {
extend: {
keyframes: {
"card-visible": {
"0%": {
transform: "rotate3d(0, 0, 0, 0) translate3d(0, 0px, 0px)",
},
"20%": {
transform:
"rotate3d(0, 0.2, -5, 5deg) translate3d(80px, 10px, 0px)",
},
"95%": {
transform:
"rotate3d(0, 0.2, 0, 180deg) translate3d(0px, calc(150% - 45vh), 0px) scale(3)",
},
"100%": {
transform:
"rotate3d(0, 0.2, 0, 180deg) translate3d(0px, calc(150% - 45vh), 0px) scale(3)",
},
},
"card-on-stack": {
"0%": {
transform:
"rotate3d(0, 0.2, 0, 180deg) translate3d(0px, calc(150% - 45vh), 0px) scale(3)",
},
"5%": {
transform:
"rotate3d(0, 0.2, 0, 180deg) translate3d(0px, calc(150% - 45vh), 0px) scale(3)",
},
"100%": {
transform: "rotate3d(0, 0, 0, 0) translate3d(0, 0px, 0px)",
},
},
"card-details": {
"0%": {
opacity: 0,
pointerEvents: "none",
},
"90%": {
opacity: 0,
pointerEvents: "none",
},
"100%": {
opacity: 1,
pointerEvents: "auto",
},
},
},
animation: {
"card-visible": "card-visible 0.8s ease-in-out forwards",
"card-hidden": "card-on-stack 0.8s ease-in-out forwards",
"card-details": "card-details 0.8s ease-in-out forwards",
"card-details-hidden": "card-details 0.8s ease-in-out reverse",
},
},
},
plugins: [],
};