Repository navigation
feat: add transition delay + document backgroundColor spring limitation - #2
Merged
Merged
Conversation
janicduplessis
added a commit
that referenced
this pull request
Mar 14, 2026
The delay prop hasn't landed on main yet (PR #2). Use JS-side setTimeout to stagger card visibility until then.
…imitation 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.
janicduplessis
force-pushed
the
feat/delay-and-docs
branch
from
March 15, 2026 03:31
d41ee04 to
4b744db
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a
delayprop to theTimingTransitiontype, allowing animations to start after a specified delay in milliseconds. This enables staggered animation effects without requiring JavaScript-side timeouts.Solution
The delay is implemented natively on both platforms. On iOS, the
CAAnimationbeginTimeproperty is set relative toCACurrentMediaTime(). On Android, theObjectAnimatorstartDelayproperty is used.iOS
Android
Test plan