Vector Animations

Ok I am trying to find out how they do stuff like the page animation here: It is very common on alot of templates and I know they dont draw each frame so do they do this with after effects and if so how? Thanks if anyone can help.