Move a class from one element in a group of elements to another.