See this link: https://css-tricks.com/animating-with-clip-path/