Skip to content

Commit f72fd92

Browse files
committed
stable release
1 parent f3bfc3d commit f72fd92

File tree

3 files changed

+48
-27
lines changed

3 files changed

+48
-27
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,24 @@ module.exports = {
5858
| animation-delay-7000 | animation-delay: 7000ms; |
5959
| animation-delay-8000 | animation-delay: 8000ms; |
6060
| animation-delay-9000 | animation-delay: 9000ms; |
61+
62+
## Configuration
63+
64+
You can configure which values and variants are generated by this plugin under the `animationDelay` key in your tailwind.config.js file:
65+
66+
```
67+
// tailwind.config.js
68+
module.exports = {
69+
theme: {
70+
animationDelay: {
71+
100: '100ms',
72+
200: '200ms',
73+
300: '300ms',
74+
400: '400ms',
75+
}
76+
},
77+
variants: {
78+
animationDelay: ['responsive', 'hover']
79+
}
80+
}
81+
```

index.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,39 @@ const animationDelay = plugin(
55
const values = theme('animationDelay')
66
var utilities = Object.entries(values).map(([key, value]) => {
77
return {
8-
[`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}ms` },
8+
[`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
99
}
1010
})
1111
addUtilities(utilities)
1212
},
1313
{
1414
theme: {
1515
animationDelay: {
16-
75: '75',
17-
100: '100',
18-
150: '150',
19-
200: '200',
20-
300: '300',
21-
400: '400',
22-
500: '500',
23-
600: '600',
24-
700: '700',
25-
800: '800',
26-
900: '900',
27-
1000: '1000',
28-
1100: '1100',
29-
1200: '1200',
30-
1300: '1300',
31-
1400: '1400',
32-
1500: '1500',
33-
2000: '2000',
34-
3000: '3000',
35-
4000: '4000',
36-
5000: '5000',
37-
6000: '6000',
38-
7000: '7000',
39-
8000: '8000',
40-
9000: '9000',
16+
75: '75ms',
17+
100: '100ms',
18+
150: '150ms',
19+
200: '200ms',
20+
300: '300ms',
21+
400: '400ms',
22+
500: '500ms',
23+
600: '600ms',
24+
700: '700ms',
25+
800: '800ms',
26+
900: '900ms',
27+
1000: '1000ms',
28+
1100: '1100ms',
29+
1200: '1200ms',
30+
1300: '1300ms',
31+
1400: '1400ms',
32+
1500: '1500ms',
33+
2000: '2000ms',
34+
3000: '3000ms',
35+
4000: '4000ms',
36+
5000: '5000ms',
37+
6000: '6000ms',
38+
7000: '7000ms',
39+
8000: '8000ms',
40+
9000: '9000ms',
4141
},
4242
},
4343
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-animation-delay",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Tailwind CSS plugin, add animation-delay CSS property.",
55
"main": "index.js",
66
"license": "MIT",

0 commit comments

Comments
 (0)