If you didât not understand this code this is for you
$("button").addClass("animated");
$(".btn").addClass("shake");
$("#target1").addClass("btn-primary");
The main objective of this code is to shake all buttons and target1 button should have extra functionality than others by putting more class in target1 using jquery directly
$("button").addClass("animated");
This code target all buttons with âbutton selectorâ and give them âanimatedâ class
from now all button have class called âanimatedâ
$(".btn").addClass("shake");
This code will put âshakeâ class in class that alredy have âbtnâ class
and shake all buttons
$("#target1").addClass("btn-primary");
This code will putt âbtn-primaryâ class in element that have â#target1â id
so your target1 button looks blue