Skip to content

Keyframes (position and anchor) #71

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

Open
jackien1 opened this issue Mar 17, 2025 · 0 comments
Open

Keyframes (position and anchor) #71

jackien1 opened this issue Mar 17, 2025 · 0 comments

Comments

@jackien1
Copy link
Contributor

position: { x: "50%", y: "100%", }, anchor: { x: 0.5, y: 1 }, animations: [ { key: "x", easing: "ease-out", frames: [ { time: 0, value: -2000 }, { time: 15, value: 0 }, ], }, ]

I want to get the image to return to the position + anchor with 0 so it looks like its sliding in from the left. I tried doing 50% of instead of 0 but that doesn't work either. Do I just have to calculate the original position from composition width * 0.5?

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

No branches or pull requests

1 participant