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

Implement transition attribute #81

Open
michielvandergeest opened this issue Mar 18, 2024 · 0 comments
Open

Implement transition attribute #81

michielvandergeest opened this issue Mar 18, 2024 · 0 comments
Assignees

Comments

@michielvandergeest
Copy link
Collaborator

Currently we can specify transitions by adding the .transition modified on attributes.

For Elements with multiple transitions it might be useful to use a dedicated transitions attribute, that can contain an array of transition objects.

<Element w="200" h="200" x="1550" color="#4c1d95"
 :transitions="[
    {prop: 'y', value: $y, duration: 800, easing: 'cubic-bezier(1,-0.64,.39,1.44)', delay: 3000},
    {prop: 'x', value: $x, duration: 800, easing: 'ease-in', delay: 0},
  ]"
/>

It should also be possible for the array of transitions to be specified in a state and referenced inside the transitions attribute.

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

2 participants