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

Paced timing using additional keyframes. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ewilligers
Copy link
Collaborator

When animating between 5 values using calcMode="discrete", each value
should be used for 1/5 of the animation duration.

This can be achieved by passing 10 keyframes with explicit offsets to Web Animations.

We were previously using 5 keyframes without offsets, and using
easing: 'steps(4, end)'

This did not achieve accurate timing.

When animating between 5 values using calcMode="discrete", each value
should be used for 1/5 of the animation duration.

This can be achieved by passing 10 keyframes with explicit offsets to Web Animations.

We were previously using 5 keyframes without offsets, and using
easing: 'steps(4, end)'

This did not achieve accurate timing.
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.

2 participants