Actually it doesn't matter was this preloader made for the site or for the animation. It will work the same way.
I should have few source codes for preloaders somewhere if you still need them.