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

Speed up the duration during reverse playback #867

Open
oa-netigo opened this issue Oct 16, 2023 · 0 comments
Open

Speed up the duration during reverse playback #867

oa-netigo opened this issue Oct 16, 2023 · 0 comments

Comments

@oa-netigo
Copy link

oa-netigo commented Oct 16, 2023

I want to reaveal und conceal a List via animejs. This list is searchable. so as a user, I want to conceal the list so fast as possible to reveal the new list result, that I searched for and dont want to wait the regular animation (reveal) speed.

So I want to speed up the duration during the reversal playback.

Example:

var animation = anime({
  targets: '.reverse-anim-demo .el',
  translateX: 270,
  duration: 1000,
  loop: false,
  delay: function(el, i) { return i * 200; },
  easing: 'easeInOutSine'
});

animation.play;

// my approach:
animation.duration = 10;

animation.reverse;
animation.play;
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