Skip to content

Commit c709cbb

Browse files
committed
Remove a call to variants() helper function
We don't actually need to call variants() inside our returned function, because that looks up the variants element in the main tailwind config object, and according to the README, the way to use this lib is to pass the variants directly. Besides, the destructured variants was shadowing the 'variants' array passed in by the user, so it was never used.
1 parent 44e5b3b commit c709cbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

animate/animate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const keyframesFadeIn = require('./keyframes/fadeIn');
1414
const keyframesFadeOut = require('./keyframes/fadeOut');
1515

1616
module.exports = function (settings = {}, variants = ['responsive']) {
17-
return function ({ e, addUtilities, variants }) {
17+
return function ({ e, addUtilities }) {
1818

1919
// set fallback if speed not defined
2020
const animatedSpeed = settings.settings.animatedSpeed ? settings.settings.animatedSpeed : 1000;
@@ -275,7 +275,7 @@ module.exports = function (settings = {}, variants = ['responsive']) {
275275
'.fadeOutUpBig': {
276276
animationName: 'fadeOutUpBig'
277277
},
278-
}, variants(variants));
278+
}, variants);
279279

280280
addUtilities({
281281
'@keyframes bounce': keyframes.keyframeBounce,

0 commit comments

Comments
 (0)