added animation to inputs