fix(animated-beam): make default duration deterministic#895
fix(animated-beam): make default duration deterministic#895iharshyadav wants to merge 1 commit intomagicuidesign:mainfrom
Conversation
|
@iharshyadav is attempting to deploy a commit to the product-studio Team on Vercel. A member of the Team first needs to authorize it. |
|
@iharshyadav I think this PR fixes the default duration randomness issue The remaining drift seems to come from Would you be able to add a follow-up commit in this PR to expose |
Summary
This PR fixes inconsistent animation timing in Animated Beam when multiple beams are rendered without explicitly setting a duration.
Root Cause
The component used a random default duration per instance (
Math.random() * 3 + 4), which made beams drift out of sync.Fix
durationto a deterministic value:5durationFiles Changed
Validation
Related
Closes #840