Skip to content

Commit 4cf7abb

Browse files
authored
Fixing the #12 !important flag breaking the plugin
When used with important: true (enabled) it breaks the animation keyframes. Fixed by overriding the flag with addUtilities respectImportant set to false, also fixed the variants - it should be placed in object - not directly after the utilities.
1 parent 038d151 commit 4cf7abb

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
@@ -306,7 +306,7 @@ module.exports = function ({ settings = {}, variants = ['responsive'] }) {
306306
'.fadeOutUpBig': {
307307
animationName: 'fadeOutUpBig'
308308
},
309-
}, variants);
309+
}, { variants, respectImportant: false });
310310

311311
addUtilities({
312312
'@keyframes bounce': keyframes.keyframeBounce,
@@ -387,6 +387,6 @@ module.exports = function ({ settings = {}, variants = ['responsive'] }) {
387387
'@keyframes fadeOutRightBig': keyframesFadeOut.keyframeFadeOutRightBig,
388388
'@keyframes fadeOutUp': keyframesFadeOut.keyframeFadeOutUp,
389389
'@keyframes fadeOutUpBig': keyframesFadeOut.keyframeFadeOutUpBig
390-
});
390+
}, { respectImportant: false });
391391
};
392392
};

0 commit comments

Comments
 (0)