Can I animate div as per page percentage load

Can I animate div as per page percentage load

I found a lot of plugins which give me percentage load, but is it possible to have a 'transition animation page' load as per percentage loaded.

(e.g if percentage loaded is 50%, then the div height should be 50%).