javascript - Combine the use of velocity.js' slideUp and begin: function -
how combine these two, 1 can slide item up, trigger js animation starts.
slideup code
.velocity("slideup", { delay: 500, duration: 1500 }); begin: code
$element.velocity({ opacity: 0 }, { /* log animated divs. */ begin: function(elements) { console.log(elements); } }); doing doesn't work.
.velocity("slideup", { delay: 500, duration: 1500 }), { /* log animated divs. */ begin: function(elements) { console.log(elements); } });
you have put thebegin property inside options object:
.velocity("slideup", { delay: 500, duration: 150, begin: function(elements) { console.log(elements); } });
Comments
Post a Comment