Closed mcosta-dada closed 3 years ago
What is input CSS, expected output, and actual output?
I have done the test with several elements. (Now I add animation, and is only that found)
Input:
@keyframes MyAnimation {
0% { left: 0; }
50% { left: 200px; }
100% { left: 20px; }
}
#productes-archive {
transition: height .5s ease;
flex:1;
display: flex;
transform: rotate(30deg);
.example.is-animating {
animation: MyAnimation 2s;
}
}
Output without nano:
@-webkit-keyframes MyAnimation {
0% {
left: 0; }
50% {
left: 200px; }
100% {
left: 20px; } }
@keyframes MyAnimation {
0% {
left: 0; }
50% {
left: 200px; }
100% {
left: 20px; } }
#productes-archive {
transition: height .5s ease;
flex: 1;
display: flex;
transform: rotate(30deg); }
#productes-archive .example.is-animating {
-webkit-animation: MyAnimation 2s;
animation: MyAnimation 2s; }
}
I expected add webkit and moz on all elements no?
Now I realize that maybe what I hope is no longer necessary?
Yeap.
I have tried many ways but I can't get it to add any prefix to my css.
I have a scss adding the code in the compilation if it compresses the code but does not add the prefixes.
I have thought that maybe it is a compatibility problem with the sass and I created the css first and then compiled the css and it has not worked either.
What am I doing wrong?
package.json :
Node version: v14.15.3 Gulp: CLI version: 2.2.1 Local version: 4.0.2
Thanks