Creating a pie chart with historical motion in Rstudio
Shiny App, will be the place to display the graphics, however the animation you are looking for is not something that plotly would create, to the best of my knowledge.

d3 however is a different beast. It can create aesthetically pleasing graphics. For your specific case, here is the example

https://bl.ocks.org/mbostock/1346410 

Or you can look at the entire gallery