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
feat: add transition delay + document backgroundColor spring limitation (#2)
* feat: add transition delay prop and document backgroundColor spring limitation
Add `delay` option (milliseconds) to TimingTransition and SpringTransition
types. Implemented via CAAnimation.beginTime on iOS, ObjectAnimator.startDelay
on Android (timing/color), and postDelayed for SpringAnimation. Added a
callout in README about Android backgroundColor being timing-only, and a
delay demo in the example app.
* style: fix clang-format violation in EaseView.mm
* chore(example): increase delay to 2s for more obvious demo
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,8 @@ When `borderRadius` is in `animate`, any `borderRadius` in `style` is automatica
198
198
199
199
On Android, background color uses `ValueAnimator.ofArgb()` (timing only — spring is not supported for colors). On iOS, it uses `CAAnimation` on the `backgroundColor` layer key path and supports both timing and spring transitions.
200
200
201
+
> **Note:** On Android, background color animation uses `ValueAnimator.ofArgb()` which only supports timing transitions. Spring transitions for `backgroundColor` are not supported on Android and will fall back to timing with the default duration. On iOS, both timing and spring transitions work for background color.
202
+
201
203
When `backgroundColor` is in `animate`, any `backgroundColor` in `style` is automatically stripped to avoid conflicts.
0 commit comments