-
-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow animation startTime
to be set manually
#2755
Conversation
29eb5bd
to
bbd4436
Compare
4adcdbd
to
84e978b
Compare
// Coerce to number as TypeScript incorrectly types this | ||
// as CSSNumberish | ||
return animation.startTime as number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this just a typescript problem or would a simple if (!isNumber(animation.startTime)) return null
be more future proof?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Web Animations L2 spec does show times as CSSNumberish but it isn't ready yet so could still be changed - I also struggle believing they will make this backwards incompatible
22b1317
to
ac31a7f
Compare
…ided MotionValues
d11b770
to
c71a6be
Compare
This PR allows the
startTime
of an animation to be set manually viaoptions
.A subsequent PR will use this to better sync animations to optimised appear animations.