You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(so using ''!important'' on them is invalid and will cause the property to be ignored).
236
238
239
+
A ''@keyframes'' block has a name given by the <<custom-ident>> or <<string>> in its prelude.
240
+
The two syntaxes are equivalent in functionality;
241
+
the name is the value of the ident or string.
242
+
As normal for <<custom-ident>>s and <<string>>s,
243
+
the names are fully <a>case-sensitive</a>;
244
+
two names are equal only if they are codepoint-by-codepoint equal.
245
+
The <<custom-ident>> additionally excludes the ''none'' keyword.
246
+
247
+
<div class=example>
248
+
For example, the following two ''@keyframes'' rules have the same name,
249
+
so the first will be ignored:
250
+
251
+
<pre class=lang-css>
252
+
@keyframes foo { ... }
253
+
@keyframes "foo" { ... }
254
+
</pre>
255
+
256
+
On the other hand,
257
+
the following ''@keyframes'' rule's name is <em>different</em> from the previous two rules:
258
+
259
+
<pre class=lang-css>
260
+
@keyframes FOO { ... }
261
+
</pre>
262
+
263
+
The following ''@keyframes'' rules are invalid
264
+
because they use disallowed <<custom-ident>> values:
265
+
266
+
<pre class=lang-css>
267
+
@keyframes initial { ... }
268
+
@keyframes None { ... }
269
+
</pre>
270
+
271
+
However, those names *can* be specified with a <<string>>,
272
+
so the following are both <em>valid</em>:
273
+
274
+
<pre class=lang-css>
275
+
@keyframes "initial" { ... }
276
+
@keyframes "None" { ... }
277
+
</div>
278
+
237
279
The <<keyframe-selector>> for a <<keyframe-block>> consists of a comma-separated list of percentage values or the keywords ''from'' or ''to''. The selector is used to specify the percentage along the duration of the animation that the keyframe represents. The keyframe itself is specified by the block of property values declared on the selector. The keyword ''from'' is equivalent to the value ''0%''. The keyword ''to'' is equivalent to the value ''100%''.
238
280
Values less than ''0%'' or higher than ''100%'' are invalid
239
281
and cause their <<keyframe-block>> to be ignored.
@@ -425,7 +467,7 @@ The 'animation-name' property</h3>
425
467
426
468
<pre class='propdef'>
427
469
Name: animation-name
428
-
Value: <<single-animation-name>>#
470
+
Value: [ none | <<keyframes-name>> ]#
429
471
Initial: none
430
472
Applies to: all elements, ::before and ::after pseudo-elements
431
473
Inherited: none
@@ -436,8 +478,6 @@ The 'animation-name' property</h3>
0 commit comments