CON-1809 | Fix overlapping of anchored element

consider moving the animate logic to  this code be moved to separate function