[go: up one dir, main page]

Skip to content
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

pass argument ms from started into tick (interval) #301

Open
xaota opened this issue Oct 14, 2023 · 0 comments
Open

pass argument ms from started into tick (interval) #301

xaota opened this issue Oct 14, 2023 · 0 comments
Labels
RFC Some new feature that should be discussed

Comments

@xaota
Copy link
xaota commented Oct 14, 2023

when interval is started, tick called in first time with zero
every tick call - time argiment increment by timeout (maybe perfomance.now())

usage

sample({ clock: tick, filter: time > 1e4, target: stopAnimation })

reference: https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame (callback argument)

@sergeysova sergeysova added the RFC Some new feature that should be discussed label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Some new feature that should be discussed
Projects
None yet
Development

No branches or pull requests

2 participants