Some preloader Q

i just want to ask something about the preloader when it load.for example i made an animation for my preloader,and when my page is loaded for,20%,i want the animation to change,and the same thing happen when it’s loaded 40%,60% until 100%.how to do that?