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

Easing option per keyframe #88

Closed
tjebbemarchand opened this issue Jun 5, 2023 · 2 comments
Closed

Easing option per keyframe #88

tjebbemarchand opened this issue Jun 5, 2023 · 2 comments

Comments

@tjebbemarchand
Copy link

tjebbemarchand commented Jun 5, 2023

Environments

  • Framework name: ReactJS
  • Framework version: 18.1.0
  • React scene component version: 1.1.0
  • Testable Address(optional):

Description

Is it possible to add an easing option per keyframe? Now I have an options object with the easing option, but that is over the whole animation.

{ ".headline_subline_button_gSla8FyLX.format_336x280": { "0": { "visibility": "visible", "transform": "translate(0px, 0px)" }, "5": { "visibility": "visible" }, "0.7": { "transform": "translate(100px, 0px)" }, "options": { "easing": "cubic-bezier(0,1.29,1,-0.27)" } } }

daybrush added a commit that referenced this issue Jun 5, 2023
@daybrush
Copy link
Owner

daybrush commented Jun 5, 2023

@tjebbemarchand

scenejs's new version is released.

Just set the easing on each frame.

https://codepen.io/daybrush/pen/qBQWKzW

@tjebbemarchand
Copy link
Author

@daybrush

Awesome! Thank you for your quick reply. That is exacly what I need. I will update scene to the new version in my project.

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

No branches or pull requests

2 participants