Skip to content

feat(core): improve loop function - #952

Merged
aarthificial merged 1 commit into
motion-canvas:mainfrom
aarthificial:loop
Feb 10, 2024
Merged

aarthificial merged 1 commit into
motion-canvas:mainfrom
aarthificial:loop

Conversation

@aarthificial

Copy link
Copy Markdown
Contributor

The first argument can be skipped to run the loop forever.
These two statements are now equivalent:

yield loop(Infinity, () => /* animation */);
yield loop(() => /* animation */);

@aarthificial
aarthificial merged commit 66c18bb into motion-canvas:main Feb 10, 2024
@aarthificial
aarthificial deleted the loop branch February 10, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant