-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Your system information
- VelocityJS version: 1.5.1
- Browser: Firefox/Chrome latest
- Operating System: Win10
Checklist
- Is this an issue with code?: Yes
- Is this an issue with documentation?: No
- Have you reproduced this in other browsers?: Yes
- Have you checked for updates?: Yes
- Have you checked for similar open issues?: No
Please describe your issue in as much detail as possible:
Stopping a custom named queue breaks the default queue animation (left to right in my code example).
It resets the animation to an earlier frame, slows down and stops halfway.
Using another custom named queue instead of the main queue would fix it and isn't affected by the stop call.
Using Velocity v2+ also fixes this with its new queue system, however i'd like to stick with 1.5.1 for better browser support. Will you keep updating the pre v2 versions for bug fixes?
Steps for reproducing this issue (code):
var e = document.getElementById("div1");
e.style.position = 'absolute';
Velocity(e, { left: window.innerWidth}, 5000); // same problem with forcefeeding
Velocity(e, {opacity: 0.5}, {queue: "f", duration: 5000});
Velocity.Utilities.dequeue(e, "f");
setTimeout(function(){Velocity(e, "stop", "f");}, 2000);
JSFiddle example showing issue in action (code):
Reactions are currently unavailable