@@ -2379,40 +2379,40 @@ Issue: Should there be any effect of triggers on scroll-driven animations?
2379
2379
The behavior an [=animation trigger=] applies to its associated [=animation=] ’s
2380
2380
playback is defined by its <dfn export>animation trigger type</dfn> , and
2381
2381
depending on its [=animation trigger state|state=] can apply one of two
2382
- distinct behavior types: '' primary'' or '' inverse'' .
2382
+ distinct behavior types: [=animation trigger state/ primary=] or [=animation trigger state/ inverse=] .
2383
2383
Given an internal |did trigger| flag, the values of [=animation trigger type=]
2384
2384
can be one of the following:
2385
2385
2386
- <dl dfn-type=value dfn-for='animation trigger type' >
2387
- <dt> <dfn>once</dfn>
2386
+ <dl>
2387
+ <dt> ''animation-trigger-type/once''
2388
2388
<dd>
2389
- The '' primary'' behavior is [=play an animation|triggering=] the associated animation.
2389
+ The [=animation trigger state/ primary=] behavior is [=play an animation|triggering=] the associated animation.
2390
2390
2391
- <dt> <dfn>repeat</dfn>
2391
+ <dt> ''animation-trigger-type/repeat''
2392
2392
<dd>
2393
- The '' primary'' behavior is [=play an animation|triggering=] the associated animation.
2394
- The '' inverse'' behavior is resetting the associated [=animation effect=] back to
2393
+ The [=animation trigger state/ primary=] behavior is [=play an animation|triggering=] the associated animation.
2394
+ The [=animation trigger state/ inverse=] behavior is resetting the associated [=animation effect=] back to
2395
2395
its [=animation effect/before phase=] and its associated animation’s [=animation/start time=] to zero.
2396
2396
2397
- <dt> <dfn>alternate</dfn>
2397
+ <dt> ''animation-trigger-type/alternate''
2398
2398
<dd>
2399
2399
<dl class=switch>
2400
2400
: if the |did trigger| flag is false,
2401
2401
::
2402
- The '' primary'' behavior is [=play an animation|triggering=] the associated animation.
2402
+ The [=animation trigger state/ primary=] behavior is [=play an animation|triggering=] the associated animation.
2403
2403
2404
2404
: Otherwise,
2405
2405
::
2406
- The '' primary'' behavior is [=reverse an animation|reversing=] the associated animation.
2406
+ The [=animation trigger state/ primary=] behavior is [=reverse an animation|reversing=] the associated animation.
2407
2407
2408
2408
</dl>
2409
2409
2410
- The '' inverse'' behavior is [=reverse an animation|reversing=] the associated animation.
2410
+ The [=animation trigger state/ inverse=] behavior is [=reverse an animation|reversing=] the associated animation.
2411
2411
2412
- <dt> <dfn>state</dfn>
2412
+ <dt> ''animation-trigger-type/state''
2413
2413
<dd>
2414
- The '' primary'' behavior is [=play an animation|triggering or resuming=] the associated animation.
2415
- The '' inverse'' behavior is [=pause an animation|pausing=] the associated animation.
2414
+ The [=animation trigger state/ primary=] behavior is [=play an animation|triggering or resuming=] the associated animation.
2415
+ The [=animation trigger state/ inverse=] behavior is [=pause an animation|pausing=] the associated animation.
2416
2416
</dl>
2417
2417
2418
2418
Issue: Need to bike-shed the name for type "state" type.
@@ -2427,19 +2427,19 @@ has an internal <dfn export lt="animation trigger state">state</dfn> which
2427
2427
controls the applied behavior type. This state has discrete values
2428
2428
which can be one of the following:
2429
2429
2430
- <dl dfn-for="animation trigger state" dfn-type=value >
2430
+ <dl dfn-for="animation trigger state">
2431
2431
<dt> <dfn>idle</dfn>
2432
2432
<dd>
2433
2433
The [=animation effect=] associated |animation| remains in
2434
2434
its [=animation effect/before phase=] and stays at zero [=animation/start time=] .
2435
2435
2436
2436
<dt> <dfn>primary</dfn>
2437
2437
<dd>
2438
- When switched to this value the '' primary'' behavior type defined by |type| is applied to |animation|.
2438
+ When switched to this value the [=animation trigger state/ primary=] behavior type defined by |type| is applied to |animation|.
2439
2439
2440
2440
<dt> <dfn>inverse</dfn>
2441
2441
<dd>
2442
- When switched to this value the '' inverse'' behavior type defined by |type| is applied to |animation|.
2442
+ When switched to this value the [=animation trigger state/ inverse=] behavior type defined by |type| is applied to |animation|.
2443
2443
2444
2444
</dl>
2445
2445
@@ -2449,7 +2449,7 @@ Issue: Do we need a formal resolution on the spec of the idle state?
2449
2449
2450
2450
Each [=animation trigger=] defines an <dfn for="animation trigger">active interval</dfn>
2451
2451
and only one such interval. This interval is the segment of the timeline’s progress
2452
- during which the trigger’s [=animation trigger state|state=] is set to '' primary'' .
2452
+ during which the trigger’s [=animation trigger state|state=] is set to [=animation trigger state/ primary=] .
2453
2453
2454
2454
### Animation Trigger Ranges ### {#trigger-ranges}
2455
2455
@@ -2464,7 +2464,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
2464
2464
[=animation trigger/active interval|active interval=] is defined as follows:
2465
2465
2466
2466
<dl class=switch>
2467
- : If |state| is '' animation trigger state/primary'' ,
2467
+ : If |state| is [= animation trigger state/primary=] ,
2468
2468
::
2469
2469
Then |interval| is set to [=exit range=] .
2470
2470
@@ -2515,7 +2515,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
2515
2515
1. Let |did trigger| be a boolean flag that is initially false.
2516
2516
2517
2517
1. Let |state| be the current [=animation trigger state|state=]
2518
- of |trigger| that is initially '' animation trigger state/idle'' .
2518
+ of |trigger| that is initially [= animation trigger state/idle=] .
2519
2519
2520
2520
1. Set |state| as follows:
2521
2521
<dl class=switch>
@@ -2527,7 +2527,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
2527
2527
::
2528
2528
2529
2529
<dl class=switch>
2530
- : If |type| is '' animation trigger type/once'' and |did trigger| flag is true,
2530
+ : If |type| is 'animation- trigger- type/once' ' and |did trigger| flag is true,
2531
2531
::
2532
2532
Then abort this procedure.
2533
2533
@@ -2537,7 +2537,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
2537
2537
<dl class=switch>
2538
2538
: If |trigger| is inside its [=animation trigger/active interval|active interval=] ,
2539
2539
::
2540
- 1. Set |state| to '' animation trigger state/primary'' .
2540
+ 1. Set |state| to [= animation trigger state/primary=] .
2541
2541
1. Set |did trigger| to true.
2542
2542
2543
2543
: Otherwise,
@@ -2546,7 +2546,7 @@ Depending on its most recent [=animation trigger state|state=] |state|, the
2546
2546
<dl class=switch>
2547
2547
: If |did trigger| flag is true,
2548
2548
::
2549
- Set |state| to '' animation trigger state/inverse'' .
2549
+ Set |state| to [= animation trigger state/inverse=] .
2550
2550
2551
2551
</dl>
2552
2552
@@ -3713,7 +3713,7 @@ dictionary AnimationTriggerOptions {
3713
3713
: <dfn>type</dfn>
3714
3714
::
3715
3715
The type of trigger to create.
3716
- If not specified, the trigger is of type ''animation trigger type/once'' .
3716
+ If not specified, the trigger is of type ''animation- trigger- type/once'' .
3717
3717
3718
3718
: <dfn>rangeStart</dfn>
3719
3719
::
@@ -3748,19 +3748,19 @@ enum AnimationTriggerType { "once", "repeat", "alternate", "state" };
3748
3748
3749
3749
: <dfn>once</dfn>
3750
3750
::
3751
- Type ''animation trigger type/once'' .
3751
+ Type ''animation- trigger- type/once'' .
3752
3752
3753
3753
: <dfn>repeat</dfn>
3754
3754
::
3755
- Type ''animation trigger type/repeat'' .
3755
+ Type ''animation- trigger- type/repeat'' .
3756
3756
3757
3757
: <dfn>alternate</dfn>
3758
3758
::
3759
- Type ''animation trigger type/alternate'' .
3759
+ Type ''animation- trigger- type/alternate'' .
3760
3760
3761
3761
: <dfn>state</dfn>
3762
3762
::
3763
- Type ''animation trigger type/state'' .
3763
+ Type ''animation- trigger- type/state'' .
3764
3764
3765
3765
</dl>
3766
3766
0 commit comments