In 4.3.7 will be changed arguments for the animate function.

Version <= 4.3.6 animate format:

$(selector).animate(draw, dur, easing, callback);

Version >= 4.3.7. Function animate receive one argument as plain object or array of objects.

$.animate({
    el: object | HTMLElement,
    draw: {} | function,
    dur: 1000,
    ease: "linear",
    loop: 0,
    pause: 0,
    dir: "normal",
    defer: 0,
    onFrame: function,
    onDone: function
})

// or 

$(selector).animate({
    draw: {} | function,
    dur: 1000,
    ease: "linear",
    loop: 0,
    pause: 0,
    dir: "normal",
    defer: 0,
    onFrame: function,
    onDone: function
})

or you can set array of animations objects

$(selector).animate([{...}, {...}, ...])

Also, in 4.3.7 I added new function chain. You can use chain for creating a sequentially of animations.

$.chain([
    {...},
    {...},
    ...
])

// or 

$(selector).chain([
    {...},
    {...},
    ...
])
Last modified: 19.04.2020

Author

Comments

Write a Reply or Comment

Your email address will not be published.