Pure JS box animation and duplicate onclick