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

Exception when trying to 'stop' a Velocity animation with 'queue' set to false #389

Closed
slyngbaek opened this issue Dec 18, 2014 · 1 comment

Comments

@slyngbaek
Copy link

Velocity animations do not listen to the stop command when the queue argument is set to false.

// Get node
var node = document.getElementById('animate');

// Start animation
Velocity(node, {
  translateX: [500, 0],
}, {
  duration: 10000,
  queue: false, // No exception when this is true
});

// Stop animation before completion
Velocity(node, 'stop');

// Throws: Uncaught TypeError: Cannot read property 'length' of null

Codepen

@ydaniv
Copy link
Contributor

ydaniv commented Dec 18, 2014

See #368
And please search existing issues next time, it's in the FAQ.

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