Refactor customView adding attribute to choose between animations (only one animation done so far)