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

Experiment with Animation Component API #260

Open
hmans opened this issue Sep 12, 2022 · 0 comments
Open

Experiment with Animation Component API #260

hmans opened this issue Sep 12, 2022 · 0 comments
Assignees

Comments

@hmans
Copy link
Owner

hmans commented Sep 12, 2022

Maybe such a thing already exists, but also maybe not? The goal is to find a nice JSX API for composing animations -- possibly with the help of the components from Timeline Composer.

Thinking of the following:

{/* Animated wraps a <group> that will have its properties animated */}
<Animated>
  <mesh>{/* ... */}</mesh>

  {/* Animation is a new component that interacts with the parent <Animated> */}
  <Animation property="scale" from={0} to={1} duration={2} ease="cubic-out" />

  {/* Delay is from Timeline Composer */}
  <Delay seconds={5}>
    <Animation property="scale" to={0} duration={2} ease="cubic-out" />
  </Delay>
</Animated>
@hmans hmans self-assigned this Sep 12, 2022
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