2016-05-30 19 views
0

Ist es in Ordnung, dies zu verwenden:-webkit-Keyframes und Keyframes mit Komma?

@-webkit-keyframes animationame, @keyframes animationame { 
blablabla 
blabla 
bla 
} 

Statt dessen:

@-webkit-keyframes animationame { 
blablabla 
blabla 
bla 
} 
@keyframes animationame { 
blablabla 
blabla 
bla 
} 
+0

Nein, der erste Fehler enthält, so wird der gesamte Block wird ignoriert. –

+3

Nein, es wird nicht funktionieren. – Oriol

+0

Wie hast du es versucht? Hat es funktioniert ?? – vals

Antwort

0

ich das lieber verwenden:

.animatedOut{ 
    from { .opacity(1); } 
    to { .opacity(0); } 
} 

@keyframes animationOut { 
    .animatedOut; 
} 
@-webkit-keyframes animationOut { 
    .animatedOut; 
} 
@-ms-keyframes animationOut { 
    .animatedOut; 
} 
@-moz-keyframes animationOut { 
    .animatedOut; 
} 
+0

Sind Sie sicher, dass dies einfach CSS ist? –

+0

ist weniger, was in Plain CSS übersetzt –