-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathanimation-triggers.json
More file actions
398 lines (398 loc) · 17.3 KB
/
Copy pathanimation-triggers.json
File metadata and controls
398 lines (398 loc) · 17.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
{
"spec": {
"title": "Animation Triggers",
"url": "https://drafts.csswg.org/animation-triggers-1/"
},
"properties": [
{
"name": "trigger-scope",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-trigger-scope",
"value": "none | all | <dashed-ident>#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "none",
"prose": "No changes in trigger name scope.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-trigger-scope-none",
"type": "value",
"value": "none"
},
{
"name": "all",
"prose": "Specifies that all trigger names defined by this element or its descendants—whose scope is not already limited by a descendant using trigger-scope—to be in scope only for this element’s flat tree descendants; and limits descendants to only match trigger names to triggers within this subtree. This value only affects trigger names in the same tree scope, as if it were a strictly matched tree-scoped name. (That is, trigger-scope: all acts identically to trigger-scope: --foo, --bar, ..., listing all relevant trigger names.)",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-trigger-scope-all",
"type": "value",
"value": "all"
},
{
"name": "<dashed-ident>",
"prose": "Specifies that a matching trigger name defined by this element or its descendants—whose scope is not already limited by a descendant using trigger-scope—to be in scope only for this element’s flat tree descendants; and limits descendants to only match these trigger names to triggers within this subtree. The <dashed-ident> represents a strictly matched tree-scoped name, i.e. it can only match against trigger names in the same shadow tree.[CSS-SCOPING-1]",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-trigger-scope-dashed-ident",
"type": "value",
"value": "<dashed-ident>"
}
],
"styleDeclaration": [
"trigger-scope",
"triggerScope"
]
},
{
"name": "timeline-trigger-name",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-name",
"value": "none | <dashed-ident>#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"styleDeclaration": [
"timeline-trigger-name",
"timelineTriggerName"
]
},
{
"name": "timeline-trigger-source",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-source",
"value": "<single-animation-timeline>#",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item either the keyword none, the keyword auto, a case-sensitive css identifier, a computed scroll() function, or a computed view() function",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"styleDeclaration": [
"timeline-trigger-source",
"timelineTriggerSource"
]
},
{
"name": "timeline-trigger-activation-range",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-activation-range",
"value": "[ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]#",
"initial": "see individual properties",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"styleDeclaration": [
"timeline-trigger-activation-range",
"timelineTriggerActivationRange"
]
},
{
"name": "timeline-trigger-activation-range-start",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-activation-range-start",
"value": "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
"initial": "normal",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
"computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"styleDeclaration": [
"timeline-trigger-activation-range-start",
"timelineTriggerActivationRangeStart"
]
},
{
"name": "timeline-trigger-activation-range-end",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-activation-range-end",
"value": "[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
"initial": "normal",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
"computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"styleDeclaration": [
"timeline-trigger-activation-range-end",
"timelineTriggerActivationRangeEnd"
]
},
{
"name": "timeline-trigger-active-range",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-active-range",
"value": "[ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]#",
"initial": "see individual properties",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"values": [
{
"name": "auto",
"prose": "The start (for timeline-trigger-active-range-start) or end (for timeline-trigger-active-range-end) is equal to the start/end of the timeline trigger’s activation range.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-timeline-trigger-active-range-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"timeline-trigger-active-range",
"timelineTriggerActiveRange"
]
},
{
"name": "timeline-trigger-active-range-start",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-active-range-start",
"value": "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
"computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "auto",
"prose": "The start (for timeline-trigger-active-range-start) or end (for timeline-trigger-active-range-end) is equal to the start/end of the timeline trigger’s activation range.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-timeline-trigger-active-range-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"timeline-trigger-active-range-start",
"timelineTriggerActiveRangeStart"
]
},
{
"name": "timeline-trigger-active-range-end",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger-active-range-end",
"value": "[ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
"computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "auto",
"prose": "The start (for timeline-trigger-active-range-start) or end (for timeline-trigger-active-range-end) is equal to the start/end of the timeline trigger’s activation range.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-timeline-trigger-active-range-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"timeline-trigger-active-range-end",
"timelineTriggerActiveRangeEnd"
]
},
{
"name": "timeline-trigger",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-timeline-trigger",
"value": "none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ / <'timeline-trigger-active-range'> ]? ]#",
"initial": "see individual properties",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"values": [
{
"name": "none",
"prose": "A value of none is equivalent to none none normal.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-timeline-trigger-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"timeline-trigger",
"timelineTrigger"
]
},
{
"name": "event-trigger-name",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-event-trigger-name",
"value": "none | <dashed-ident>#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"styleDeclaration": [
"event-trigger-name",
"eventTriggerName"
]
},
{
"name": "event-trigger-source",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-event-trigger-source",
"value": "[ none | <event-trigger-event>+ [ / <event-trigger-event>+ ]? ]#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "none",
"prose": "The corresponding entry in the coordinated value list does not define a trigger.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-event-trigger-source-none",
"type": "value",
"value": "none"
},
{
"name": "<event-trigger-event>+ [ / <event-trigger-event>+ ]?",
"prose": "Defines what event(s) the event trigger responds to. If a / is used in the value, the event trigger is stateful; the set of events before the / are the event trigger’s enter events, while those after the / are the exit events. (The same events can occur in both sets.) Otherwise, the event trigger is stateless, and the provided events are its enter events.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-event-trigger-source-event-trigger-event--event-trigger-event",
"type": "value",
"value": "<event-trigger-event>+ [ / <event-trigger-event>+ ]?"
}
],
"styleDeclaration": [
"event-trigger-source",
"eventTriggerSource"
]
},
{
"name": "event-trigger",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-event-trigger",
"value": "none | [ <'event-trigger-name'> <'event-trigger-source'> ]#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"animationType": "not animatable",
"canonicalOrder": "per grammar",
"values": [
{
"name": "none",
"prose": "A value of none is equivalent to none none.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-event-trigger-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"event-trigger",
"eventTrigger"
]
},
{
"name": "animation-trigger",
"href": "https://drafts.csswg.org/animation-triggers-1/#propdef-animation-trigger",
"value": "[ none | [ <dashed-ident> <animation-action>+ ]+ ]#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "not animatable",
"values": [
{
"name": "none",
"prose": "The corresponding animation is not a triggered animation.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-trigger-none",
"type": "value",
"value": "none"
},
{
"name": "[ <dashed-ident> <animation-action>+ ]+",
"prose": "The corresponding animation is a triggered animation, responding to the triggers named by each <dashed-ident>, and responding by taking the action named by the corresponding <animation-action>. (See § 2.1 Trigger Name Scoping: the trigger-scope property for how <dashed-ident>s are resolved to triggers.) How many <animation-action>s a trigger accepts, and what exactly activates them, is determined by the type of the trigger. (Event triggers take one and possibly an optional second, depending on whether they’re stateless or stateful; timeline triggers take one and optionally a second.) Specifying the wrong number of actions (too many or too few) is valid syntactically, but causes the trigger to have no effect. If multiple triggers occur simultaneously, they take effect in the order specified. If the same <dashed-ident> is specified multiple times, all but the last have no effect.",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-trigger--dashed-ident-animation-action",
"type": "value",
"value": "[ <dashed-ident> <animation-action>+ ]+"
}
],
"styleDeclaration": [
"animation-trigger",
"animationTrigger"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<event-trigger-event>",
"href": "https://drafts.csswg.org/animation-triggers-1/#typedef-event-trigger-event",
"type": "type",
"value": "activate | interest | click | touch | dblclick | keypress(<string>) | ..."
},
{
"name": "<animation-action>",
"prose": "The possible <animation-action> values, and what effect they have in each animation state:",
"href": "https://drafts.csswg.org/animation-triggers-1/#typedef-animation-action",
"type": "type",
"values": [
{
"name": "none",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-none",
"type": "value",
"value": "none"
},
{
"name": "play",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-play",
"type": "value",
"value": "play"
},
{
"name": "play-once",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-play-once",
"type": "value",
"value": "play-once"
},
{
"name": "play-forwards",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-play-forwards",
"type": "value",
"value": "play-forwards"
},
{
"name": "play-backwards",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-play-backwards",
"type": "value",
"value": "play-backwards"
},
{
"name": "pause",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-pause",
"type": "value",
"value": "pause"
},
{
"name": "reset",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-reset",
"type": "value",
"value": "reset"
},
{
"name": "replay",
"href": "https://drafts.csswg.org/animation-triggers-1/#valdef-animation-action-replay",
"type": "value",
"value": "replay"
}
]
}
]
}