@wix/interact 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react.js +1 -1
- package/dist/cjs/web.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/react.js +2 -2
- package/dist/es/web.js +2 -2
- package/dist/{index-wDdpOvzw.mjs → index-BnI6W-7u.mjs} +130 -124
- package/dist/{index-wDdpOvzw.mjs.map → index-BnI6W-7u.mjs.map} +1 -1
- package/dist/{index-muYJHOYV.js → index-emAFXYqb.js} +5 -5
- package/dist/{index-muYJHOYV.js.map → index-emAFXYqb.js.map} +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/core/add.d.ts.map +1 -1
- package/docs/api/types.md +2 -2
- package/package.json +1 -1
- package/rules/click.md +2 -4
- package/rules/full-lean.md +3 -3
- package/rules/hover.md +2 -4
- package/rules/integration.md +28 -4
- package/rules/pointermove.md +33 -65
- package/rules/scroll-list.md +54 -54
- package/rules/viewenter.md +0 -3
- package/rules/viewprogress.md +68 -68
package/rules/pointermove.md
CHANGED
|
@@ -87,7 +87,7 @@ Controls how the progress range is calculated:
|
|
|
87
87
|
- `[TARGET_KEY]`: Unique identifier for target element to animate (can be same as source or different)
|
|
88
88
|
- `[HIT_AREA]`: 'self' (mouse within source element) or 'root' (mouse anywhere in viewport)
|
|
89
89
|
- `[3D_EFFECT_TYPE]`: 'Tilt3DMouse', 'Track3DMouse', 'SwivelMouse'
|
|
90
|
-
- `[EFFECT_PROPERTIES]`: Named effect specific properties (angle, perspective,
|
|
90
|
+
- `[EFFECT_PROPERTIES]`: Named effect specific properties (angle, perspective, direction, etc.)
|
|
91
91
|
- `[CENTERED_TO_TARGET]`: true (center range at target) or false (use source element bounds)
|
|
92
92
|
- `[UNIQUE_EFFECT_ID]`: Optional unique identifier
|
|
93
93
|
|
|
@@ -106,8 +106,7 @@ Controls how the progress range is calculated:
|
|
|
106
106
|
namedEffect: {
|
|
107
107
|
type: 'Tilt3DMouse',
|
|
108
108
|
angle: 15,
|
|
109
|
-
perspective: 1000
|
|
110
|
-
power: 'medium'
|
|
109
|
+
perspective: 1000
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
]
|
|
@@ -142,8 +141,7 @@ Controls how the progress range is calculated:
|
|
|
142
141
|
namedEffect: {
|
|
143
142
|
type: '[MOVEMENT_EFFECT_TYPE]',
|
|
144
143
|
distance: { value: [DISTANCE_VALUE], unit: '[DISTANCE_UNIT]' },
|
|
145
|
-
axis: '[AXIS_CONSTRAINT]'
|
|
146
|
-
power: '[POWER_LEVEL]'
|
|
144
|
+
axis: '[AXIS_CONSTRAINT]'
|
|
147
145
|
},
|
|
148
146
|
centeredToTarget: [CENTERED_TO_TARGET],
|
|
149
147
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
@@ -158,7 +156,6 @@ Controls how the progress range is calculated:
|
|
|
158
156
|
- `[DISTANCE_VALUE]`: Numeric value for movement distance
|
|
159
157
|
- `[DISTANCE_UNIT]`: 'px', 'percentage', 'vw', 'vh'
|
|
160
158
|
- `[AXIS_CONSTRAINT]`: 'both', 'horizontal', 'vertical'
|
|
161
|
-
- `[POWER_LEVEL]`: 'soft', 'medium', 'hard'
|
|
162
159
|
- Other variables same as Rule 1
|
|
163
160
|
|
|
164
161
|
**Example - Cursor Follower Element**:
|
|
@@ -175,8 +172,7 @@ Controls how the progress range is calculated:
|
|
|
175
172
|
namedEffect: {
|
|
176
173
|
type: 'TrackMouse',
|
|
177
174
|
distance: { value: 50, unit: 'percentage' },
|
|
178
|
-
axis: 'both'
|
|
179
|
-
power: 'medium'
|
|
175
|
+
axis: 'both'
|
|
180
176
|
},
|
|
181
177
|
centeredToTarget: false
|
|
182
178
|
}
|
|
@@ -199,8 +195,7 @@ Controls how the progress range is calculated:
|
|
|
199
195
|
namedEffect: {
|
|
200
196
|
type: 'AiryMouse',
|
|
201
197
|
distance: { value: 30, unit: 'px' },
|
|
202
|
-
axis: 'both'
|
|
203
|
-
power: 'soft'
|
|
198
|
+
axis: 'both'
|
|
204
199
|
},
|
|
205
200
|
centeredToTarget: true,
|
|
206
201
|
effectId: 'hero-float'
|
|
@@ -248,7 +243,7 @@ Controls how the progress range is calculated:
|
|
|
248
243
|
**Variables**:
|
|
249
244
|
|
|
250
245
|
- `[SCALE_EFFECT_TYPE]`: 'ScaleMouse', 'BlobMouse', 'SkewMouse'
|
|
251
|
-
- `[SCALE_PROPERTIES]`: Effect-specific properties (scale, distance, axis
|
|
246
|
+
- `[SCALE_PROPERTIES]`: Effect-specific properties (scale, distance, axis)
|
|
252
247
|
- Other variables same as Rule 1
|
|
253
248
|
|
|
254
249
|
**Example - Interactive Scale Button**:
|
|
@@ -267,8 +262,7 @@ Controls how the progress range is calculated:
|
|
|
267
262
|
type: 'ScaleMouse',
|
|
268
263
|
scale: 1.1,
|
|
269
264
|
distance: { value: 100, unit: 'px' },
|
|
270
|
-
axis: 'both'
|
|
271
|
-
power: 'medium'
|
|
265
|
+
axis: 'both'
|
|
272
266
|
},
|
|
273
267
|
centeredToTarget: true
|
|
274
268
|
}
|
|
@@ -291,8 +285,7 @@ Controls how the progress range is calculated:
|
|
|
291
285
|
namedEffect: {
|
|
292
286
|
type: 'BlobMouse',
|
|
293
287
|
intensity: 0.8,
|
|
294
|
-
smoothness: 0.6
|
|
295
|
-
power: 'medium'
|
|
288
|
+
smoothness: 0.6
|
|
296
289
|
},
|
|
297
290
|
effectId: 'blob-morph'
|
|
298
291
|
}
|
|
@@ -339,7 +332,7 @@ Controls how the progress range is calculated:
|
|
|
339
332
|
**Variables**:
|
|
340
333
|
|
|
341
334
|
- `[VISUAL_EFFECT_TYPE]`: 'BlurMouse', 'SpinMouse'
|
|
342
|
-
- `[VISUAL_PROPERTIES]`: Effect-specific properties (blur amount, rotation speed
|
|
335
|
+
- `[VISUAL_PROPERTIES]`: Effect-specific properties (blur amount, rotation speed)
|
|
343
336
|
- Other variables same as Rule 1
|
|
344
337
|
|
|
345
338
|
**Example - Motion Blur Card**:
|
|
@@ -357,8 +350,7 @@ Controls how the progress range is calculated:
|
|
|
357
350
|
namedEffect: {
|
|
358
351
|
type: 'BlurMouse',
|
|
359
352
|
blurAmount: 5,
|
|
360
|
-
motionIntensity: 0.7
|
|
361
|
-
power: 'medium'
|
|
353
|
+
motionIntensity: 0.7
|
|
362
354
|
},
|
|
363
355
|
centeredToTarget: true
|
|
364
356
|
}
|
|
@@ -381,8 +373,7 @@ Controls how the progress range is calculated:
|
|
|
381
373
|
namedEffect: {
|
|
382
374
|
type: 'SpinMouse',
|
|
383
375
|
rotationSpeed: 0.5,
|
|
384
|
-
direction: 'clockwise'
|
|
385
|
-
power: 'soft'
|
|
376
|
+
direction: 'clockwise'
|
|
386
377
|
},
|
|
387
378
|
centeredToTarget: false,
|
|
388
379
|
effectId: 'icon-spin'
|
|
@@ -418,8 +409,7 @@ Controls how the progress range is calculated:
|
|
|
418
409
|
key: '[BACKGROUND_LAYER_KEY]',
|
|
419
410
|
namedEffect: {
|
|
420
411
|
type: '[BACKGROUND_EFFECT_TYPE]',
|
|
421
|
-
distance: { value: [BACKGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
422
|
-
power: '[BACKGROUND_POWER]'
|
|
412
|
+
distance: { value: [BACKGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
423
413
|
},
|
|
424
414
|
centeredToTarget: [CENTERED_TO_TARGET]
|
|
425
415
|
},
|
|
@@ -427,8 +417,7 @@ Controls how the progress range is calculated:
|
|
|
427
417
|
key: '[MIDGROUND_LAYER_KEY]',
|
|
428
418
|
namedEffect: {
|
|
429
419
|
type: '[MIDGROUND_EFFECT_TYPE]',
|
|
430
|
-
distance: { value: [MIDGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
431
|
-
power: '[MIDGROUND_POWER]'
|
|
420
|
+
distance: { value: [MIDGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
432
421
|
},
|
|
433
422
|
centeredToTarget: [CENTERED_TO_TARGET]
|
|
434
423
|
},
|
|
@@ -436,8 +425,7 @@ Controls how the progress range is calculated:
|
|
|
436
425
|
key: '[FOREGROUND_LAYER_KEY]',
|
|
437
426
|
namedEffect: {
|
|
438
427
|
type: '[FOREGROUND_EFFECT_TYPE]',
|
|
439
|
-
distance: { value: [FOREGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
440
|
-
power: '[FOREGROUND_POWER]'
|
|
428
|
+
distance: { value: [FOREGROUND_DISTANCE], unit: '[DISTANCE_UNIT]' }
|
|
441
429
|
},
|
|
442
430
|
centeredToTarget: [CENTERED_TO_TARGET]
|
|
443
431
|
}
|
|
@@ -451,7 +439,6 @@ Controls how the progress range is calculated:
|
|
|
451
439
|
- `[*_LAYER_KEY]`: Unique identifier for different layer elements
|
|
452
440
|
- `[*_EFFECT_TYPE]`: Named effects for each layer (typically movement effects)
|
|
453
441
|
- `[*_DISTANCE]`: Movement distance for each layer (creating depth)
|
|
454
|
-
- `[*_POWER]`: Power level for each layer response
|
|
455
442
|
- Other variables same as previous rules
|
|
456
443
|
|
|
457
444
|
**Example - Parallax Card Layers**:
|
|
@@ -469,8 +456,7 @@ Controls how the progress range is calculated:
|
|
|
469
456
|
namedEffect: {
|
|
470
457
|
type: 'AiryMouse',
|
|
471
458
|
distance: { value: 15, unit: 'px' },
|
|
472
|
-
axis: 'both'
|
|
473
|
-
power: 'soft'
|
|
459
|
+
axis: 'both'
|
|
474
460
|
},
|
|
475
461
|
centeredToTarget: true
|
|
476
462
|
},
|
|
@@ -479,8 +465,7 @@ Controls how the progress range is calculated:
|
|
|
479
465
|
namedEffect: {
|
|
480
466
|
type: 'TrackMouse',
|
|
481
467
|
distance: { value: 25, unit: 'px' },
|
|
482
|
-
axis: 'both'
|
|
483
|
-
power: 'medium'
|
|
468
|
+
axis: 'both'
|
|
484
469
|
},
|
|
485
470
|
centeredToTarget: true
|
|
486
471
|
},
|
|
@@ -489,8 +474,7 @@ Controls how the progress range is calculated:
|
|
|
489
474
|
namedEffect: {
|
|
490
475
|
type: 'BounceMouse',
|
|
491
476
|
distance: { value: 35, unit: 'px' },
|
|
492
|
-
axis: 'both'
|
|
493
|
-
power: 'medium'
|
|
477
|
+
axis: 'both'
|
|
494
478
|
},
|
|
495
479
|
centeredToTarget: true
|
|
496
480
|
}
|
|
@@ -513,8 +497,7 @@ Controls how the progress range is calculated:
|
|
|
513
497
|
namedEffect: {
|
|
514
498
|
type: 'AiryMouse',
|
|
515
499
|
distance: { value: 20, unit: 'px' },
|
|
516
|
-
axis: 'both'
|
|
517
|
-
power: 'soft'
|
|
500
|
+
axis: 'both'
|
|
518
501
|
},
|
|
519
502
|
centeredToTarget: true
|
|
520
503
|
},
|
|
@@ -523,8 +506,7 @@ Controls how the progress range is calculated:
|
|
|
523
506
|
namedEffect: {
|
|
524
507
|
type: 'TrackMouse',
|
|
525
508
|
distance: { value: 40, unit: 'px' },
|
|
526
|
-
axis: 'horizontal'
|
|
527
|
-
power: 'medium'
|
|
509
|
+
axis: 'horizontal'
|
|
528
510
|
},
|
|
529
511
|
centeredToTarget: true
|
|
530
512
|
},
|
|
@@ -533,8 +515,7 @@ Controls how the progress range is calculated:
|
|
|
533
515
|
namedEffect: {
|
|
534
516
|
type: 'ScaleMouse',
|
|
535
517
|
scale: 1.05,
|
|
536
|
-
distance: { value: 60, unit: 'px' }
|
|
537
|
-
power: 'medium'
|
|
518
|
+
distance: { value: 60, unit: 'px' }
|
|
538
519
|
},
|
|
539
520
|
centeredToTarget: true
|
|
540
521
|
}
|
|
@@ -610,8 +591,7 @@ Controls how the progress range is calculated:
|
|
|
610
591
|
namedEffect: {
|
|
611
592
|
type: 'Tilt3DMouse',
|
|
612
593
|
angle: 12,
|
|
613
|
-
perspective: 1000
|
|
614
|
-
power: 'soft'
|
|
594
|
+
perspective: 1000
|
|
615
595
|
},
|
|
616
596
|
centeredToTarget: true
|
|
617
597
|
},
|
|
@@ -620,8 +600,7 @@ Controls how the progress range is calculated:
|
|
|
620
600
|
namedEffect: {
|
|
621
601
|
type: 'AiryMouse',
|
|
622
602
|
distance: { value: 20, unit: 'px' },
|
|
623
|
-
axis: 'both'
|
|
624
|
-
power: 'soft'
|
|
603
|
+
axis: 'both'
|
|
625
604
|
},
|
|
626
605
|
centeredToTarget: true
|
|
627
606
|
}
|
|
@@ -644,8 +623,7 @@ Controls how the progress range is calculated:
|
|
|
644
623
|
namedEffect: {
|
|
645
624
|
type: 'ScaleMouse',
|
|
646
625
|
scale: 1.05,
|
|
647
|
-
distance: { value: 80, unit: 'px' }
|
|
648
|
-
power: 'medium'
|
|
626
|
+
distance: { value: 80, unit: 'px' }
|
|
649
627
|
},
|
|
650
628
|
centeredToTarget: true
|
|
651
629
|
},
|
|
@@ -654,8 +632,7 @@ Controls how the progress range is calculated:
|
|
|
654
632
|
namedEffect: {
|
|
655
633
|
type: 'TrackMouse',
|
|
656
634
|
distance: { value: 15, unit: 'px' },
|
|
657
|
-
axis: 'horizontal'
|
|
658
|
-
power: 'hard'
|
|
635
|
+
axis: 'horizontal'
|
|
659
636
|
},
|
|
660
637
|
centeredToTarget: false
|
|
661
638
|
}
|
|
@@ -722,8 +699,7 @@ Controls how the progress range is calculated:
|
|
|
722
699
|
namedEffect: {
|
|
723
700
|
type: 'TrackMouse',
|
|
724
701
|
distance: { value: 0, unit: 'px' },
|
|
725
|
-
axis: 'both'
|
|
726
|
-
power: 'hard'
|
|
702
|
+
axis: 'both'
|
|
727
703
|
},
|
|
728
704
|
centeredToTarget: false,
|
|
729
705
|
effectId: 'global-cursor'
|
|
@@ -745,9 +721,8 @@ Controls how the progress range is calculated:
|
|
|
745
721
|
{
|
|
746
722
|
namedEffect: {
|
|
747
723
|
type: 'AiryMouse',
|
|
748
|
-
distance: { value: 50,
|
|
749
|
-
axis: 'both'
|
|
750
|
-
power: 'soft'
|
|
724
|
+
distance: { value: 50, unit: 'px' },
|
|
725
|
+
axis: 'both'
|
|
751
726
|
},
|
|
752
727
|
centeredToTarget: false,
|
|
753
728
|
effectId: 'decoration-follower'
|
|
@@ -1264,8 +1239,7 @@ Adjusting pointer sensitivity based on device capabilities:
|
|
|
1264
1239
|
namedEffect: {
|
|
1265
1240
|
type: 'Tilt3DMouse',
|
|
1266
1241
|
angle: 20,
|
|
1267
|
-
perspective: 800
|
|
1268
|
-
power: 'medium'
|
|
1242
|
+
perspective: 800
|
|
1269
1243
|
},
|
|
1270
1244
|
centeredToTarget: true
|
|
1271
1245
|
}
|
|
@@ -1284,8 +1258,7 @@ Adjusting pointer sensitivity based on device capabilities:
|
|
|
1284
1258
|
key: 'responsive-element',
|
|
1285
1259
|
namedEffect: {
|
|
1286
1260
|
type: 'ScaleMouse',
|
|
1287
|
-
scale: 1.02
|
|
1288
|
-
power: 'soft'
|
|
1261
|
+
scale: 1.02
|
|
1289
1262
|
},
|
|
1290
1263
|
centeredToTarget: true
|
|
1291
1264
|
}
|
|
@@ -1310,8 +1283,7 @@ Different hit areas for different interaction contexts:
|
|
|
1310
1283
|
key: 'local-card',
|
|
1311
1284
|
namedEffect: {
|
|
1312
1285
|
type: 'Tilt3DMouse',
|
|
1313
|
-
angle: 15
|
|
1314
|
-
power: 'medium'
|
|
1286
|
+
angle: 15
|
|
1315
1287
|
},
|
|
1316
1288
|
centeredToTarget: true
|
|
1317
1289
|
}
|
|
@@ -1329,8 +1301,7 @@ Different hit areas for different interaction contexts:
|
|
|
1329
1301
|
key: 'ambient-element',
|
|
1330
1302
|
namedEffect: {
|
|
1331
1303
|
type: 'AiryMouse',
|
|
1332
|
-
distance: { value: 30, unit: 'px' }
|
|
1333
|
-
power: 'soft'
|
|
1304
|
+
distance: { value: 30, unit: 'px' }
|
|
1334
1305
|
},
|
|
1335
1306
|
centeredToTarget: false
|
|
1336
1307
|
}
|
|
@@ -1355,8 +1326,7 @@ Controlling movement direction for specific design needs:
|
|
|
1355
1326
|
namedEffect: {
|
|
1356
1327
|
type: 'TrackMouse',
|
|
1357
1328
|
distance: { value: 100, unit: 'px' },
|
|
1358
|
-
axis: 'horizontal'
|
|
1359
|
-
power: 'medium'
|
|
1329
|
+
axis: 'horizontal'
|
|
1360
1330
|
},
|
|
1361
1331
|
centeredToTarget: true
|
|
1362
1332
|
},
|
|
@@ -1366,8 +1336,7 @@ Controlling movement direction for specific design needs:
|
|
|
1366
1336
|
type: 'ScaleMouse',
|
|
1367
1337
|
scale: 1.2,
|
|
1368
1338
|
distance: { value: 150, unit: 'px' },
|
|
1369
|
-
axis: 'vertical'
|
|
1370
|
-
power: 'medium'
|
|
1339
|
+
axis: 'vertical'
|
|
1371
1340
|
},
|
|
1372
1341
|
centeredToTarget: true
|
|
1373
1342
|
}
|
|
@@ -1527,7 +1496,6 @@ Controlling movement direction for specific design needs:
|
|
|
1527
1496
|
|
|
1528
1497
|
**Poor pointer responsiveness**:
|
|
1529
1498
|
|
|
1530
|
-
- Check `power` settings (soft/medium/hard) for namedEffect
|
|
1531
1499
|
- Verify `hitArea` configuration
|
|
1532
1500
|
- Test `centeredToTarget` settings
|
|
1533
1501
|
- Ensure target elements are properly positioned
|
package/rules/scroll-list.md
CHANGED
|
@@ -25,8 +25,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
25
25
|
namedEffect: {
|
|
26
26
|
type: '[CONTAINER_NAMED_EFFECT]'
|
|
27
27
|
},
|
|
28
|
-
rangeStart: { name: 'contain', offset: {
|
|
29
|
-
rangeEnd: { name: 'contain', offset: {
|
|
28
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
29
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
30
30
|
easing: 'linear',
|
|
31
31
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
32
32
|
}
|
|
@@ -54,8 +54,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
54
54
|
namedEffect: {
|
|
55
55
|
type: 'PanScroll'
|
|
56
56
|
},
|
|
57
|
-
rangeStart: { name: 'contain', offset: {
|
|
58
|
-
rangeEnd: { name: 'contain', offset: {
|
|
57
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
58
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 100 } },
|
|
59
59
|
easing: 'linear',
|
|
60
60
|
effectId: 'gallery-slide'
|
|
61
61
|
}
|
|
@@ -75,8 +75,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
75
75
|
namedEffect: {
|
|
76
76
|
type: 'BgParallax'
|
|
77
77
|
},
|
|
78
|
-
rangeStart: { name: 'contain', offset: {
|
|
79
|
-
rangeEnd: { name: 'contain', offset: {
|
|
78
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
79
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 100 } },
|
|
80
80
|
easing: 'linear',
|
|
81
81
|
effectId: 'bg-parallax'
|
|
82
82
|
}
|
|
@@ -109,8 +109,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
109
109
|
namedEffect: {
|
|
110
110
|
type: '[ITEM_NAMED_EFFECT]'
|
|
111
111
|
},
|
|
112
|
-
rangeStart: { name: '[RANGE_TYPE]', offset: {
|
|
113
|
-
rangeEnd: { name: '[RANGE_TYPE]', offset: {
|
|
112
|
+
rangeStart: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
113
|
+
rangeEnd: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
114
114
|
easing: '[EASING_FUNCTION]',
|
|
115
115
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
116
116
|
}
|
|
@@ -145,8 +145,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
145
145
|
type: 'RevealScroll',
|
|
146
146
|
direction: 'bottom'
|
|
147
147
|
},
|
|
148
|
-
rangeStart: { name: 'entry', offset: {
|
|
149
|
-
rangeEnd: { name: 'entry', offset: {
|
|
148
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
149
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 60 } },
|
|
150
150
|
easing: 'ease-out',
|
|
151
151
|
effectId: 'item-reveal'
|
|
152
152
|
}
|
|
@@ -166,8 +166,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
166
166
|
namedEffect: {
|
|
167
167
|
type: 'GrowScroll'
|
|
168
168
|
},
|
|
169
|
-
rangeStart: { name: 'contain', offset: {
|
|
170
|
-
rangeEnd: { name: 'contain', offset: {
|
|
169
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
170
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 50 } },
|
|
171
171
|
easing: 'ease-in-out',
|
|
172
172
|
effectId: 'item-grow'
|
|
173
173
|
}
|
|
@@ -200,8 +200,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
200
200
|
namedEffect: {
|
|
201
201
|
type: '[CONTENT_NAMED_EFFECT]'
|
|
202
202
|
},
|
|
203
|
-
rangeStart: { name: '[RANGE_TYPE]', offset: {
|
|
204
|
-
rangeEnd: { name: '[RANGE_TYPE]', offset: {
|
|
203
|
+
rangeStart: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
204
|
+
rangeEnd: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
205
205
|
easing: '[EASING_FUNCTION]',
|
|
206
206
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
207
207
|
}
|
|
@@ -234,8 +234,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
234
234
|
namedEffect: {
|
|
235
235
|
type: 'FadeScroll'
|
|
236
236
|
},
|
|
237
|
-
rangeStart: { name: 'entry', offset: {
|
|
238
|
-
rangeEnd: { name: 'entry', offset: {
|
|
237
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 20 } },
|
|
238
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 80 } },
|
|
239
239
|
easing: 'ease-out',
|
|
240
240
|
effectId: 'text-reveal-1'
|
|
241
241
|
}
|
|
@@ -251,8 +251,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
251
251
|
namedEffect: {
|
|
252
252
|
type: 'FadeScroll'
|
|
253
253
|
},
|
|
254
|
-
rangeStart: { name: 'entry', offset: {
|
|
255
|
-
rangeEnd: { name: 'entry', offset: {
|
|
254
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 20 } },
|
|
255
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 80 } },
|
|
256
256
|
easing: 'ease-out',
|
|
257
257
|
effectId: 'text-reveal-2'
|
|
258
258
|
}
|
|
@@ -273,8 +273,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
273
273
|
namedEffect: {
|
|
274
274
|
type: 'RevealScroll'
|
|
275
275
|
},
|
|
276
|
-
rangeStart: { name: 'entry', offset: {
|
|
277
|
-
rangeEnd: { name: 'entry', offset: {
|
|
276
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
277
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 50 } },
|
|
278
278
|
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
279
279
|
effectId: 'product-image-reveal'
|
|
280
280
|
}
|
|
@@ -312,8 +312,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
312
312
|
{ [CSS_PROPERTY_1]: '[END_VALUE_1]', [CSS_PROPERTY_2]: '[END_VALUE_2]', [CSS_PROPERTY_3]: '[END_VALUE_3]' }
|
|
313
313
|
]
|
|
314
314
|
},
|
|
315
|
-
rangeStart: { name: 'contain', offset: {
|
|
316
|
-
rangeEnd: { name: 'contain', offset: {
|
|
315
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
316
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
317
317
|
easing: 'linear',
|
|
318
318
|
fill: 'both',
|
|
319
319
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
@@ -347,8 +347,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
347
347
|
{ transform: 'translateX(-100%)', filter: 'brightness(1)', backgroundColor: 'rgb(255 255 255 / 0)' }
|
|
348
348
|
]
|
|
349
349
|
},
|
|
350
|
-
rangeStart: { name: 'contain', offset: {
|
|
351
|
-
rangeEnd: { name: 'contain', offset: {
|
|
350
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
351
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 100 } },
|
|
352
352
|
easing: 'linear',
|
|
353
353
|
fill: 'both',
|
|
354
354
|
effectId: 'container-slide'
|
|
@@ -373,8 +373,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
373
373
|
{ transform: 'scale(1) rotate(0deg)', opacity: '1', filter: 'hue-rotate(0deg)' }
|
|
374
374
|
]
|
|
375
375
|
},
|
|
376
|
-
rangeStart: { name: 'contain', offset: {
|
|
377
|
-
rangeEnd: { name: 'contain', offset: {
|
|
376
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
377
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 100 } },
|
|
378
378
|
easing: 'linear',
|
|
379
379
|
fill: 'both',
|
|
380
380
|
effectId: 'bg-transform'
|
|
@@ -413,8 +413,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
413
413
|
{ [CSS_PROPERTY_1]: '[END_VALUE_1]', [CSS_PROPERTY_2]: '[END_VALUE_2]' }
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
|
-
rangeStart: { name: '[RANGE_TYPE]', offset: {
|
|
417
|
-
rangeEnd: { name: '[RANGE_TYPE]', offset: {
|
|
416
|
+
rangeStart: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
417
|
+
rangeEnd: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
418
418
|
easing: '[EASING_FUNCTION]',
|
|
419
419
|
fill: 'both',
|
|
420
420
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
@@ -447,8 +447,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
447
447
|
{ opacity: '1', transform: 'translateY(0) scale(1) rotate(0deg)', filter: 'blur(0)', boxShadow: '0 20px 40px rgb(0 0 0 / 0.15)' }
|
|
448
448
|
]
|
|
449
449
|
},
|
|
450
|
-
rangeStart: { name: 'entry', offset: {
|
|
451
|
-
rangeEnd: { name: 'entry', offset: {
|
|
450
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
451
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 80 } },
|
|
452
452
|
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
453
453
|
fill: 'both',
|
|
454
454
|
effectId: 'timeline-entrance'
|
|
@@ -474,8 +474,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
474
474
|
{ opacity: '0', transform: 'scale(0.8) rotate(-5deg)', filter: 'brightness(0.6)' }
|
|
475
475
|
]
|
|
476
476
|
},
|
|
477
|
-
rangeStart: { name: 'exit', offset: {
|
|
478
|
-
rangeEnd: { name: 'exit', offset: {
|
|
477
|
+
rangeStart: { name: 'exit', offset: { unit: 'percentage', value: 20 } },
|
|
478
|
+
rangeEnd: { name: 'exit', offset: { unit: 'percentage', value: 100 } },
|
|
479
479
|
easing: 'ease-in',
|
|
480
480
|
fill: 'both',
|
|
481
481
|
effectId: 'card-exit'
|
|
@@ -503,8 +503,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
503
503
|
effects: {
|
|
504
504
|
[EFFECT_ID]: {
|
|
505
505
|
[EFFECT_TYPE]: [EFFECT_DEFINITION],
|
|
506
|
-
rangeStart: { name: '[RANGE_TYPE]', offset: {
|
|
507
|
-
rangeEnd: { name: '[RANGE_TYPE]', offset: {
|
|
506
|
+
rangeStart: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
507
|
+
rangeEnd: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
508
508
|
easing: '[EASING_FUNCTION]'
|
|
509
509
|
}
|
|
510
510
|
},
|
|
@@ -532,8 +532,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
532
532
|
namedEffect: {
|
|
533
533
|
type: 'SlideScroll'
|
|
534
534
|
},
|
|
535
|
-
rangeStart: { name: 'entry', offset: {
|
|
536
|
-
rangeEnd: { name: 'entry', offset: {
|
|
535
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
536
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 60 } },
|
|
537
537
|
easing: 'linear'
|
|
538
538
|
}
|
|
539
539
|
},
|
|
@@ -582,8 +582,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
582
582
|
{ opacity: '1', transform: 'translateY(0) scale(1)' }
|
|
583
583
|
]
|
|
584
584
|
},
|
|
585
|
-
rangeStart: { name: 'entry', offset: {
|
|
586
|
-
rangeEnd: { name: 'entry', offset: {
|
|
585
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
586
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 100 } },
|
|
587
587
|
easing: 'expoOut',
|
|
588
588
|
fill: 'both'
|
|
589
589
|
}
|
|
@@ -648,8 +648,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
648
648
|
[DYNAMIC_CONTENT_UPDATE]
|
|
649
649
|
[VISUAL_PROPERTY_UPDATES]
|
|
650
650
|
},
|
|
651
|
-
rangeStart: { name: '[RANGE_TYPE]', offset: {
|
|
652
|
-
rangeEnd: { name: '[RANGE_TYPE]', offset: {
|
|
651
|
+
rangeStart: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [START_PERCENTAGE] } },
|
|
652
|
+
rangeEnd: { name: '[RANGE_TYPE]', offset: { unit: 'percentage', value: [END_PERCENTAGE] } },
|
|
653
653
|
fill: 'both',
|
|
654
654
|
effectId: '[UNIQUE_EFFECT_ID]'
|
|
655
655
|
}
|
|
@@ -692,8 +692,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
692
692
|
progressBar.style.width = `${percentage}%`;
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
|
-
rangeStart: { name: 'entry', offset: {
|
|
696
|
-
rangeEnd: { name: 'exit', offset: {
|
|
695
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
696
|
+
rangeEnd: { name: 'exit', offset: { unit: 'percentage', value: 100 } },
|
|
697
697
|
fill: 'both',
|
|
698
698
|
effectId: 'stats-counter'
|
|
699
699
|
}
|
|
@@ -748,8 +748,8 @@ These rules help generate scroll-driven list animations using the `@wix/interact
|
|
|
748
748
|
progressIndicator.textContent = `${Math.floor(progress * 100)}% Complete`;
|
|
749
749
|
}
|
|
750
750
|
},
|
|
751
|
-
rangeStart: { name: 'cover', offset: {
|
|
752
|
-
rangeEnd: { name: 'cover', offset: {
|
|
751
|
+
rangeStart: { name: 'cover', offset: { unit: 'percentage', value: 0 } },
|
|
752
|
+
rangeEnd: { name: 'cover', offset: { unit: 'percentage', value: 100 } },
|
|
753
753
|
fill: 'both',
|
|
754
754
|
effectId: 'task-progress'
|
|
755
755
|
}
|
|
@@ -780,8 +780,8 @@ Coordinating container, items, and content simultaneously:
|
|
|
780
780
|
{ transform: 'scale(1) translateY(-50px)', filter: 'blur(2px)' }
|
|
781
781
|
]
|
|
782
782
|
},
|
|
783
|
-
rangeStart: { name: 'cover', offset: {
|
|
784
|
-
rangeEnd: { name: 'cover', offset: {
|
|
783
|
+
rangeStart: { name: 'cover', offset: { unit: 'percentage', value: 0 } },
|
|
784
|
+
rangeEnd: { name: 'cover', offset: { unit: 'percentage', value: 100 } },
|
|
785
785
|
easing: 'linear',
|
|
786
786
|
fill: 'both'
|
|
787
787
|
},
|
|
@@ -795,8 +795,8 @@ Coordinating container, items, and content simultaneously:
|
|
|
795
795
|
{ transform: 'translateX(-50%)' }
|
|
796
796
|
]
|
|
797
797
|
},
|
|
798
|
-
rangeStart: { name: 'contain', offset: {
|
|
799
|
-
rangeEnd: { name: 'contain', offset: {
|
|
798
|
+
rangeStart: { name: 'contain', offset: { unit: 'percentage', value: 0 } },
|
|
799
|
+
rangeEnd: { name: 'contain', offset: { unit: 'percentage', value: 100 } },
|
|
800
800
|
easing: 'linear',
|
|
801
801
|
fill: 'both'
|
|
802
802
|
},
|
|
@@ -810,8 +810,8 @@ Coordinating container, items, and content simultaneously:
|
|
|
810
810
|
{ transform: 'translateY(-100px)', opacity: '1' }
|
|
811
811
|
]
|
|
812
812
|
},
|
|
813
|
-
rangeStart: { name: 'cover', offset: {
|
|
814
|
-
rangeEnd: { name: 'cover', offset: {
|
|
813
|
+
rangeStart: { name: 'cover', offset: { unit: 'percentage', value: 0 } },
|
|
814
|
+
rangeEnd: { name: 'cover', offset: { unit: 'percentage', value: 100 } },
|
|
815
815
|
easing: 'linear',
|
|
816
816
|
fill: 'both'
|
|
817
817
|
}
|
|
@@ -839,8 +839,8 @@ Adaptive patterns based on screen size and device capabilities:
|
|
|
839
839
|
{ transform: 'translateY(0) rotateY(0deg)', boxShadow: '0 0 0 rgb(0 0 0 / 0)' }
|
|
840
840
|
]
|
|
841
841
|
},
|
|
842
|
-
rangeStart: { name: 'entry', offset: {
|
|
843
|
-
rangeEnd: { name: 'entry', offset: {
|
|
842
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
843
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 80 } },
|
|
844
844
|
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
845
845
|
fill: 'both'
|
|
846
846
|
}
|
|
@@ -861,8 +861,8 @@ Adaptive patterns based on screen size and device capabilities:
|
|
|
861
861
|
{ opacity: '1', transform: 'translateY(0)' }
|
|
862
862
|
]
|
|
863
863
|
},
|
|
864
|
-
rangeStart: { name: 'entry', offset: {
|
|
865
|
-
rangeEnd: { name: 'entry', offset: {
|
|
864
|
+
rangeStart: { name: 'entry', offset: { unit: 'percentage', value: 0 } },
|
|
865
|
+
rangeEnd: { name: 'entry', offset: { unit: 'percentage', value: 60 } },
|
|
866
866
|
easing: 'ease-out',
|
|
867
867
|
fill: 'both'
|
|
868
868
|
}
|
package/rules/viewenter.md
CHANGED
|
@@ -597,7 +597,6 @@ Same as Rule 2
|
|
|
597
597
|
namedEffect: {
|
|
598
598
|
type: 'SlideIn',
|
|
599
599
|
direction: 'bottom',
|
|
600
|
-
power: 'medium',
|
|
601
600
|
},
|
|
602
601
|
duration: 600,
|
|
603
602
|
easing: 'ease-out',
|
|
@@ -618,7 +617,6 @@ Same as Rule 2
|
|
|
618
617
|
namedEffect: {
|
|
619
618
|
type: 'SlideIn',
|
|
620
619
|
direction: 'bottom',
|
|
621
|
-
power: 'medium',
|
|
622
620
|
},
|
|
623
621
|
duration: 600,
|
|
624
622
|
easing: 'ease-out',
|
|
@@ -639,7 +637,6 @@ Same as Rule 2
|
|
|
639
637
|
namedEffect: {
|
|
640
638
|
type: 'SlideIn',
|
|
641
639
|
direction: 'bottom',
|
|
642
|
-
power: 'medium',
|
|
643
640
|
},
|
|
644
641
|
duration: 600,
|
|
645
642
|
easing: 'ease-out',
|