Skip to content

Commit cda6d4d

Browse files
committed
Add keyframes as utilities instead of base
1 parent f8d7f24 commit cda6d4d

File tree

5 files changed

+178
-178
lines changed

5 files changed

+178
-178
lines changed

__tests__/fixtures/tailwind-output-ie11.css

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -577,50 +577,6 @@ video {
577577
height: auto;
578578
}
579579

580-
@keyframes spin {
581-
from {
582-
transform: rotate(0deg);
583-
}
584-
585-
to {
586-
transform: rotate(360deg);
587-
}
588-
}
589-
590-
@keyframes ping {
591-
0% {
592-
transform: scale(1);
593-
opacity: 1;
594-
}
595-
596-
75%, 100% {
597-
transform: scale(2);
598-
opacity: 0;
599-
}
600-
}
601-
602-
@keyframes pulse {
603-
0%, 100% {
604-
opacity: 1;
605-
}
606-
607-
50% {
608-
opacity: .5;
609-
}
610-
}
611-
612-
@keyframes bounce {
613-
0%, 100% {
614-
transform: translateY(-25%);
615-
animation-timing-function: cubic-bezier(0.8,0,1,1);
616-
}
617-
618-
50% {
619-
transform: translateY(0);
620-
animation-timing-function: cubic-bezier(0,0,0.2,1);
621-
}
622-
}
623-
624580
.container {
625581
width: 100%;
626582
}
@@ -10994,6 +10950,50 @@ video {
1099410950
transition-delay: 1000ms;
1099510951
}
1099610952

10953+
@keyframes spin {
10954+
from {
10955+
transform: rotate(0deg);
10956+
}
10957+
10958+
to {
10959+
transform: rotate(360deg);
10960+
}
10961+
}
10962+
10963+
@keyframes ping {
10964+
0% {
10965+
transform: scale(1);
10966+
opacity: 1;
10967+
}
10968+
10969+
75%, 100% {
10970+
transform: scale(2);
10971+
opacity: 0;
10972+
}
10973+
}
10974+
10975+
@keyframes pulse {
10976+
0%, 100% {
10977+
opacity: 1;
10978+
}
10979+
10980+
50% {
10981+
opacity: .5;
10982+
}
10983+
}
10984+
10985+
@keyframes bounce {
10986+
0%, 100% {
10987+
transform: translateY(-25%);
10988+
animation-timing-function: cubic-bezier(0.8,0,1,1);
10989+
}
10990+
10991+
50% {
10992+
transform: translateY(0);
10993+
animation-timing-function: cubic-bezier(0,0,0.2,1);
10994+
}
10995+
}
10996+
1099710997
.animate-none {
1099810998
animation: none;
1099910999
}

__tests__/fixtures/tailwind-output-important.css

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -577,50 +577,6 @@ video {
577577
height: auto;
578578
}
579579

580-
@keyframes spin {
581-
from {
582-
transform: rotate(0deg);
583-
}
584-
585-
to {
586-
transform: rotate(360deg);
587-
}
588-
}
589-
590-
@keyframes ping {
591-
0% {
592-
transform: scale(1);
593-
opacity: 1;
594-
}
595-
596-
75%, 100% {
597-
transform: scale(2);
598-
opacity: 0;
599-
}
600-
}
601-
602-
@keyframes pulse {
603-
0%, 100% {
604-
opacity: 1;
605-
}
606-
607-
50% {
608-
opacity: .5;
609-
}
610-
}
611-
612-
@keyframes bounce {
613-
0%, 100% {
614-
transform: translateY(-25%);
615-
animation-timing-function: cubic-bezier(0.8,0,1,1);
616-
}
617-
618-
50% {
619-
transform: translateY(0);
620-
animation-timing-function: cubic-bezier(0,0,0.2,1);
621-
}
622-
}
623-
624580
.container {
625581
width: 100%;
626582
}
@@ -14416,6 +14372,50 @@ video {
1441614372
transition-delay: 1000ms !important;
1441714373
}
1441814374

14375+
@keyframes spin {
14376+
from {
14377+
transform: rotate(0deg) !important;
14378+
}
14379+
14380+
to {
14381+
transform: rotate(360deg) !important;
14382+
}
14383+
}
14384+
14385+
@keyframes ping {
14386+
0% {
14387+
transform: scale(1) !important;
14388+
opacity: 1 !important;
14389+
}
14390+
14391+
75%, 100% {
14392+
transform: scale(2) !important;
14393+
opacity: 0 !important;
14394+
}
14395+
}
14396+
14397+
@keyframes pulse {
14398+
0%, 100% {
14399+
opacity: 1 !important;
14400+
}
14401+
14402+
50% {
14403+
opacity: .5 !important;
14404+
}
14405+
}
14406+
14407+
@keyframes bounce {
14408+
0%, 100% {
14409+
transform: translateY(-25%) !important;
14410+
animation-timing-function: cubic-bezier(0.8,0,1,1) !important;
14411+
}
14412+
14413+
50% {
14414+
transform: translateY(0) !important;
14415+
animation-timing-function: cubic-bezier(0,0,0.2,1) !important;
14416+
}
14417+
}
14418+
1441914419
.animate-none {
1442014420
animation: none !important;
1442114421
}

__tests__/fixtures/tailwind-output-no-color-opacity.css

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -577,50 +577,6 @@ video {
577577
height: auto;
578578
}
579579

580-
@keyframes spin {
581-
from {
582-
transform: rotate(0deg);
583-
}
584-
585-
to {
586-
transform: rotate(360deg);
587-
}
588-
}
589-
590-
@keyframes ping {
591-
0% {
592-
transform: scale(1);
593-
opacity: 1;
594-
}
595-
596-
75%, 100% {
597-
transform: scale(2);
598-
opacity: 0;
599-
}
600-
}
601-
602-
@keyframes pulse {
603-
0%, 100% {
604-
opacity: 1;
605-
}
606-
607-
50% {
608-
opacity: .5;
609-
}
610-
}
611-
612-
@keyframes bounce {
613-
0%, 100% {
614-
transform: translateY(-25%);
615-
animation-timing-function: cubic-bezier(0.8,0,1,1);
616-
}
617-
618-
50% {
619-
transform: translateY(0);
620-
animation-timing-function: cubic-bezier(0,0,0.2,1);
621-
}
622-
}
623-
624580
.container {
625581
width: 100%;
626582
}
@@ -11968,6 +11924,50 @@ video {
1196811924
transition-delay: 1000ms;
1196911925
}
1197011926

11927+
@keyframes spin {
11928+
from {
11929+
transform: rotate(0deg);
11930+
}
11931+
11932+
to {
11933+
transform: rotate(360deg);
11934+
}
11935+
}
11936+
11937+
@keyframes ping {
11938+
0% {
11939+
transform: scale(1);
11940+
opacity: 1;
11941+
}
11942+
11943+
75%, 100% {
11944+
transform: scale(2);
11945+
opacity: 0;
11946+
}
11947+
}
11948+
11949+
@keyframes pulse {
11950+
0%, 100% {
11951+
opacity: 1;
11952+
}
11953+
11954+
50% {
11955+
opacity: .5;
11956+
}
11957+
}
11958+
11959+
@keyframes bounce {
11960+
0%, 100% {
11961+
transform: translateY(-25%);
11962+
animation-timing-function: cubic-bezier(0.8,0,1,1);
11963+
}
11964+
11965+
50% {
11966+
transform: translateY(0);
11967+
animation-timing-function: cubic-bezier(0,0,0.2,1);
11968+
}
11969+
}
11970+
1197111971
.animate-none {
1197211972
animation: none;
1197311973
}

0 commit comments

Comments
 (0)