new view directive for smooth animations