-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
47 lines (47 loc) · 1.74 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
module.exports = {
content: [
'./src/pages/*.{tsx,astro}',
'./src/components/*.{tsx,ts,astro}',
],
theme: {
fontFamily: {
display: '\'Work SansVariable\', sans-serif',
body: '\'Work SansVariable\', sans-serif'
},
extend: {
animation: {
hero: 'hero 20s infinite ease-in-out',
heartbeat: 'heartbeat 3s infinite ease-in-out',
scroll: 'down 3s infinite linear, appear 3s infinite ease-in-out',
},
keyframes: {
appear: {
'0%': { opacity: 0 },
'20%': { opacity: 0 },
'45%': { opacity: 1 },
'55%': { opacity: 1 },
'80%': { opacity: 0 },
'100%': { opacity: 0 },
},
down: {
'0%': { transform: 'translate(0, -100%)'},
'100%': { transform: 'translate(0, 100%)'},
},
hero: {
'0%, 100%': { transform: 'scale(1) translate(20px, 50px)' },
'40%': { transform: 'scale(1.5) translate(-20px, 50px)' },
'60%': { transform: 'scale(1.1) translate(10px, -50px)' },
'80%': { transform: 'scale(1.3) translate(-10px, 20px)' },
},
heartbeat: {
'0%, 100%': { transform: 'scale(1)' },
'7%': { transform: 'scale(1.25)' },
'14%': { transform: 'scale(0.95)' },
'21%': { transform: 'scale(1.15)' },
'28%': { transform: 'scale(1)' },
},
}
},
},
plugins: [],
};