The following I do not understand.
$(".target:nth-child(2)").addClass("animated bounce"); $(".target:even").addClass("animated shake");
The first line makes the second button bounce
and the second line makes the first and the third bounce (because it starts with 0 position because 0 is an even number and this targets the first button and then position 2 targets the third button.)
Now my question is. Why is the first line not targeting the third button then? Because 0 targets the first, 1 targets the second and 2 targets the third in :even