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

Add animateTransform motion #539

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Add animateTransform motion #539

merged 2 commits into from
Jan 9, 2024

Conversation

jeffdaley
Copy link
Contributor

Adds an animateTransform motion for transitions that modify one or multiple transform properties.

animateTransform(sprite, {
  scale: {
    from: 0.4,
    duration: 200,
  },
  rotate: {
    from: -10,
  },
  translate: {
    y: {
      from: 25,
    },
  },
  duration: 500, // fallback duration
  easing: easeOutExpo,
});

@jeffdaley jeffdaley requested a review from a team as a code owner January 8, 2024 22:02
Comment on lines -97 to -99
sprite.applyStyles({
opacity: "0",
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary

@jeffdaley jeffdaley merged commit e6c48e2 into main Jan 9, 2024
2 checks passed
@jeffdaley jeffdaley deleted the jeffdaley/animate-transform branch January 9, 2024 18:59
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.

None yet

2 participants