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

feat: add MotionPathControls control via ref + add two properties #2354

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

Riment
Copy link
Contributor

@Riment Riment commented Feb 16, 2025

Adding control of the motion state of MotionPathControls via the reference.
Adding debugColor property to change debug helpers color.
Adding loop property to control if the target object loop back to the start when reaching the end of the curve.

Why

Avoid using only the useMotion hook inside MotionPathControls component to control the target object.

What

Add motion property to the MotionPathControls ref.
Handle useMotion hook error when used outside of MotionPathControls component.
Update doc.

Checklist

  • Documentation updated (example)
  • Storybook entry added (example)
  • Ready to be merged

Copy link

vercel bot commented Feb 16, 2025

@Riment is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codesandbox-ci bot commented Feb 16, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@CodyJasonBennett CodyJasonBennett merged commit c9d1463 into pmndrs:master Feb 19, 2025
3 of 4 checks passed
Copy link

🎉 This PR is included in version 9.122.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants