Skip to content

Commit 72345e8

Browse files
committed
Don't add important to keyframes
1 parent 8e5d8d1 commit 72345e8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14374,45 +14374,45 @@ video {
1437414374

1437514375
@keyframes spin {
1437614376
from {
14377-
transform: rotate(0deg) !important;
14377+
transform: rotate(0deg);
1437814378
}
1437914379

1438014380
to {
14381-
transform: rotate(360deg) !important;
14381+
transform: rotate(360deg);
1438214382
}
1438314383
}
1438414384

1438514385
@keyframes ping {
1438614386
0% {
14387-
transform: scale(1) !important;
14388-
opacity: 1 !important;
14387+
transform: scale(1);
14388+
opacity: 1;
1438914389
}
1439014390

1439114391
75%, 100% {
14392-
transform: scale(2) !important;
14393-
opacity: 0 !important;
14392+
transform: scale(2);
14393+
opacity: 0;
1439414394
}
1439514395
}
1439614396

1439714397
@keyframes pulse {
1439814398
0%, 100% {
14399-
opacity: 1 !important;
14399+
opacity: 1;
1440014400
}
1440114401

1440214402
50% {
14403-
opacity: .5 !important;
14403+
opacity: .5;
1440414404
}
1440514405
}
1440614406

1440714407
@keyframes bounce {
1440814408
0%, 100% {
14409-
transform: translateY(-25%) !important;
14410-
animation-timing-function: cubic-bezier(0.8,0,1,1) !important;
14409+
transform: translateY(-25%);
14410+
animation-timing-function: cubic-bezier(0.8,0,1,1);
1441114411
}
1441214412

1441314413
50% {
14414-
transform: translateY(0) !important;
14415-
animation-timing-function: cubic-bezier(0,0,0.2,1) !important;
14414+
transform: translateY(0);
14415+
animation-timing-function: cubic-bezier(0,0,0.2,1);
1441614416
}
1441714417
}
1441814418

src/plugins/animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function() {
88
return [`@keyframes ${name}`, keyframes]
99
})
1010
)
11-
addUtilities(keyframesStyles)
11+
addUtilities(keyframesStyles, { respectImportant: false })
1212

1313
const animationConfig = theme('animation')
1414
const utilities = _.fromPairs(

0 commit comments

Comments
 (0)