Added CSS transition to box