Hide overflow on animated views

This change automatically hides the overflow of animated views,
assuming that they do not want to overflow their container.