May 2017
Intermediate to advanced
448 pages
10h 10m
English
Every jQuery collection has a set of deferred objects associated with it tracking the status of queued operations on the elements in the collection. By calling the .promise() method on the jQuery object, we get a promise object that is resolved when a queue completes. In particular, we can use this promise to take action upon the completion of all of the animations running on any of the matched elements.
Just as we have a showDetails() function to display the member name and location information, we can write a showBio() function for bringing the biographical information into view. But first, we'll append a new <div> tag to the <body> tag and set up two options objects:
$(() => { const $movable = $('<div/>') .attr('id', ...Read now
Unlock full access